max-height affects the inline-size computed through an aspect ratio for non-replaced elements
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 1 open bug, )
Details
Attachments
(2 files, 2 obsolete files)
This bug should address the size constraints when using aspect-ratio
property.
See https://drafts.csswg.org/css-sizing-4/#aspect-ratio:
Additionally, sizing constraints in either axis (the origin axis) are transferred through the preferred aspect ratio to the other axis (the destination axis) as follows:
- First, any definite minimum size is converted and transferred from the origin to destination axis. This transferred minimum is capped by any definite preferred or maximum size in the destination axis.
- Then, any definite maximum size is converted and transferred from the origin to destination. This transferred maximum is floored by any definite preferred or minimum size in the destination axis as well as by the transferred minimum, if any.
The relevant wpts are:
css-sizing/aspect-ratio/block-aspect-ratio-020.tentative.html
to
css-sizing/aspect-ratio/block-aspect-ratio-028.tentative.html
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Just move the computation of min and max block sizes into a static function,
so we may merge the implemntation with that in ReflowInput::ComputeMinMaxValues.
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
It seems we always calculate the inline size first, and so we know the block size through aspect-ratio, so transferred min/max block size may not take effect. Perhaps this is a potential bug. For now, I'd like to handle the inline case in this bug.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/806282a39a35
https://hg.mozilla.org/mozilla-central/rev/3fdcc3ca998a
Description
•