implement fit-content(<length-percentage>) value of width/min-width/max-width property
Categories
(Core :: Layout, enhancement, P3)
Tracking
()
People
(Reporter: dbaron, Assigned: boris)
References
(Depends on 1 open bug, Blocks 3 open bugs)
Details
(Keywords: dev-doc-complete, DevAdvocacy, Whiteboard: [DevRel:P1][layout:p2], [wptsync upstream])
Attachments
(5 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1312588 - Part 3: Implement the layout part of fit-content() without the intrinsic contribution.
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Updated•8 years ago
|
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
Reporter | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Reporter | ||
Comment 9•6 years ago
|
||
intrinsic-sizing |
Reporter | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Sorry, I missed this. So the idea of fit-content
was to represent the sizing formula of auto
floats and tables so that it can be applied to other things, like regular blocks. And fit-content(100%)
and fit-content
are conceptually the same thing, assuming zero MBP; it would make sense if their behavior were essentially interchangeable. So the behavior here might need clarification in the spec, but unless there's some compelling reason not to, they should behave like auto
does when it is interpreted as shrinkwrapping. Which is to say, contribute as for max-content
when calculating max-content intrinsic sizes, and contribute as for min-content
when contributing min-content sizes.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 11•4 years ago
|
||
Assignee | ||
Comment 12•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 13•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 14•4 years ago
|
||
Assignee | ||
Comment 15•4 years ago
|
||
We simplified to just rely on the behavior of the plain argument. That is,
width: fit-content(50%) behaves the same as width: 50%; in all circumstances,
just clamped by min/max-content.
Note: for block axis, we treat fit-content() as initial value its minimal
and maximal value are identical and equal to the initial value in block axis.
From: https://github.com/w3c/csswg-drafts/issues/3731#issuecomment-661408877
Updated•4 years ago
|
Comment 16•4 years ago
|
||
Comment 18•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/30be78bce9b7
https://hg.mozilla.org/mozilla-central/rev/160fb67fad9f
https://hg.mozilla.org/mozilla-central/rev/c5389bf6f509
https://hg.mozilla.org/mozilla-central/rev/f0de4933e215
https://hg.mozilla.org/mozilla-central/rev/41792e6152e6
Updated•4 years ago
|
Comment 20•4 years ago
|
||
I have added this to experimental features and to BCD.
Description
•