[wpt-sync] Sync PR 47499 - [layout] Rework block-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 47499 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/47499
Details from upstream follow.
Ian Kilpatrick <ikilpatrick@chromium.org> wrote:
[layout] Rework block-size aspect-ratio logic.
Similar to:
https://chromium-review.googlesource.com/c/chromium/src/+/5753989Previously we had special logic to determine if we had an aspect-ratio
present, and manually resolve the size.This changes what "auto" maps to when we have an aspect-ratio present.
This patch:
- Checks if we can determine the block-size from the aspect-ratio,
e.g. if we have a definite inline-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: I1338a957871004be53be98b834ae4853e88481aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5754643
Commit-Queue: Ian Kilpatrick \<ikilpatrick@chromium.org>
Reviewed-by: David Baron \<dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1338154}
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Assignee | ||
Comment 2•6 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-002.html [wpt.fyi]:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
Comment 4•6 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/159b4228af13
https://hg.mozilla.org/mozilla-central/rev/682f1603be18
Description
•