Implement container relative length units
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: sebo, Assigned: dshin)
References
(Blocks 3 open bugs, )
Details
(Keywords: dev-doc-complete)
Attachments
(5 files)
CSS Containment Module Level 3 defines different container relative length units. Those units are cqw
, cqh
, cqi
, cqb
, cqmin
, cqmax
.
Sebastian
Comment 2•2 years ago
|
||
For reference, here's a link to the relevant spec-section, in a mirror of drafts.csswg.org, since drafts.csswg.org is partly-down:
https://andreubotella.com/csswg-auto-build/css-contain-3/#container-lengths
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
- For now, implementation always returns the fallback value, i.e. small viewport lengths.
- Enabled via existing pref
layout.css.container-queries.enabled
.
Assignee | ||
Comment 4•2 years ago
|
||
For controlled construction and access of upcoming, lazily-evaluated container query size.
Depends on D158054
Assignee | ||
Comment 5•2 years ago
|
||
Low-hanging fruit optimization that enables short-circuit exit of container query lookups.
Depends on D158055
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D158056
Assignee | ||
Comment 7•2 years ago
|
||
Depends on D158057
Updated•2 years ago
|
Comment 10•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/840bdd4142f4
https://hg.mozilla.org/mozilla-central/rev/0792a4e5363e
https://hg.mozilla.org/mozilla-central/rev/361c82fbc7a8
https://hg.mozilla.org/mozilla-central/rev/7e4e5ed528ef
https://hg.mozilla.org/mozilla-central/rev/c2f047ea3f07
Comment 12•2 years ago
|
||
FF108 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/22119
Can you confirm that this is shipped in FF108? If not, what is the preference used to enable this?
Reporter | ||
Comment 13•2 years ago
|
||
Those units are part of the efforts around implementing container queries. So they are currently still behind the layout.css.container-queries.enabled
flag.
Emilio has now added the dev-doc-needed
flag to the meta-bug.
I guess, they should be mentioned together with container queries in general at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features, though.
Sebastian
Comment 14•2 years ago
|
||
Thanks Sebastian. I just found a more general issue on MDN too: Improve existing and add new documentation for container queries #20987. I'm pretty sure these will all be dealt with together as you suggest.
Updated•2 years ago
|
Description
•