Cap aspect-ratio's automatic minimum size by its maximum size
Categories
(Core :: Layout, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox129 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Per https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum,
In order to avoid unintentional overflow, the automatic minimum size in the ratio-dependent axis of a box with a preferred aspect ratio that is neither a replaced element nor a scroll container is its min-content size capped by its maximum size.
We've implemented the automatic minimum size, but we don't seem to cap the size by the maximum size. Therefore, we fail https://wpt.live/css/css-sizing/aspect-ratio/block-aspect-ratio-038.html and https://wpt.live/css/css-sizing/aspect-ratio/block-aspect-ratio-039.html
| Assignee | ||
Comment 1•1 year ago
|
||
The flex container and grid container have already considered max sizes clamping
when computing their sizes. Therefore, flex-aspect-ratio-043.html,
flex-aspect-ratio-044.html, and grid-aspect-ratio-042.html already pass on
the current Nightly without this patch.
flex-aspect-ratio-043.htmlandflex-aspect-ratio-044.htmlare adapted from
flex-aspect-ratio-040.htmlandflex-aspect-ratio-041.html.grid-aspect-ratio-042.htmlis adapted fromgrid-aspect-ratio-039.html.fieldset-element-002.htmlis adapted fromfieldset-element-001.html.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
| bugherder | ||
Description
•