[wpt-sync] Sync PR 47495 - [layout] Rework inline-size aspect-ratio logic.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox131 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 47495 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/47495
Details from upstream follow.
Ian Kilpatrick <ikilpatrick@chromium.org> wrote:
[layout] Rework inline-size aspect-ratio logic.
Previously we had special logic to determine if we had an aspect-ratio
present, and manually resolve the size.Instead of this we should have been changing what "auto" maps to when
we have an aspect-ratio present.This patch:
- Checks if we can determine the inline-size from the aspect-ratio
by seeing if we can resolve the block-size.- From this maps the "auto" length to "fit-content" when needed.
- Changes the automatic minimum size logic to determine if our
main length has a content-based size.Bug: 40339056
Change-Id: Ia47d4473cff22defc08924466ce4f445ed654d5a
Reviewed-on: https://chromium-review.googlesource.com/5753989
WPT-Export-Revision: 712e45cbe53899ae89cb56b2aff3300c9251d1ba
Assignee | ||
Updated•3 months ago
|
Assignee | ||
Comment 1•3 months ago
|
||
Assignee | ||
Comment 2•3 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL
: 1
Chrome
FAIL
: 1
Safari
FAIL
: 1
Links
Details
New Tests That Don't Pass
- /css/css-values/calc-size/calc-size-aspect-ratio-001.html [wpt.fyi]:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
Comment 4•3 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ad2f3e1a6608
https://hg.mozilla.org/mozilla-central/rev/d744dae5f0e8
Description
•