Take intrinsic size into account when using aspect-ratio
Categories
(Core :: Layout, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 1 open bug, )
Details
Attachments
(3 files, 2 obsolete files)
This should address this issue: https://github.com/w3c/csswg-drafts/issues/5032.
There are some examples when the ratio-determining axis uses intrinsic sizes, e.g. max-content, min-content.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
I think https://bugzilla.mozilla.org/show_bug.cgi?id=1670151 is also fixed by the 2nd patch. However, I will add the test in that bug.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
In some cases, the aspect ratio works with box sizing dimensions, and
sometimes it works only with content box dimensions. We need an extra
flag to know this, and handle it well while computing the size in
ratio-dependent axis.
Comment 6•3 years ago
|
||
Comment on attachment 9193855 [details]
Bug 1646100 - Add UseBoxSizing for AspectRatio class.
Revision D100072 was moved to bug 1683424. Setting attachment 9193855 [details] to obsolete.
Assignee | ||
Comment 7•3 years ago
|
||
We need a simplified version for ComputeISizeValue() for table cols and
table cells to avoid taking aspect-ratio into account for the following
patches.
Comment 8•3 years ago
|
||
Comment on attachment 9195352 [details]
Bug 1646100 - Rewrite the computation for min/max inline size for table cols and table cells.
Revision D100749 was moved to bug 1685207. Setting attachment 9195352 [details] to obsolete.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0825deaefb7e Take LogicalSize type for containing block and boxing size adjustment for ComputeISizeValue. r=TYLin https://hg.mozilla.org/integration/autoland/rev/47d9283b4c33 Compute {min|max|fit}-content from the definite block-size and aspect-ratio. r=TYLin,emilio https://hg.mozilla.org/integration/autoland/rev/12053c7dc8e4 min-width:auto together with apect-ratio should take the intrinsic content size into account when width is {min|max|fit}-content or auto. r=TYLin
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27248 for changes under testing/web-platform/tests
Comment 11•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0825deaefb7e
https://hg.mozilla.org/mozilla-central/rev/47d9283b4c33
https://hg.mozilla.org/mozilla-central/rev/12053c7dc8e4
Upstream PR merged by moz-wptsync-bot
Updated•3 years ago
|
Description
•