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•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 4•4 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•4 years ago
|
Assignee | ||
Comment 5•4 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•4 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•4 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•4 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•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 11•4 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
Updated•4 years ago
|
Description
•