mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
Automatic update from web-platform-tests [css-flex][css-grid] Fix synthesized baseline When a flex or grid container has no baseline, its baseline should be synthesized from the border edges. The same happens for flex and grid items. Right now we were using the content box in some cases and even using the margin box in a particular scenario. The patch fixes this and update the existent tests to the new behavior. Three new tests are added to WPT too. At the same time this is also fixing the baseline for inline flex/grid containers to make it interoperable with Firefox. Inline blocks have a special behavior per legacy reasons, which applies to inline flex/grid containers when they have no items; otherwise the items should be used to compute its baseline. See more at: https://github.com/w3c/csswg-drafts/issues/3416 BUG=659610,671132 TEST=external/wpt/css/css-align/baseline-rules/synthesized-baseline-flexbox-001.html TEST=external/wpt/css/css-align/baseline-rules/synthesized-baseline-grid-001.html TEST=external/wpt/css/css-align/baseline-rules/synthesized-baseline-inline-block-001.html Change-Id: Ic11fbfc0a6ab9252568ea1734dcbbcbc3dbeb68c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1533952 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Manuel Rego <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#643817} -- wpt-commits: 4f3229dc2f08ccfb7463b07049df0e67d542e222 wpt-pr: 16016 |
||
|---|---|---|
| .. | ||
| synthesized-baseline-flexbox-001.html | ||
| synthesized-baseline-grid-001.html | ||
| synthesized-baseline-inline-block-001.html | ||