Implement container relative length units
| Tracking | Status | |
|---|---|---|
| firefox108 | --- | fixed |
| Reporter | |
Description•4 years ago
|
CSS Containment Module Level 3 defines different container relative length units. Those units are cqw, cqh, cqi, cqb, cqmin, cqmax.
Sebastian
Comment 2•3 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•3 years ago
|
| Assignee | |
Comment 3•3 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•3 years ago
|
For controlled construction and access of upcoming, lazily-evaluated container query size.
Depends on D158054
| Assignee | |
Comment 5•3 years ago
|
Low-hanging fruit optimization that enables short-circuit exit of container query lookups.
Depends on D158055
| Assignee | |
Comment 6•3 years ago
|
Depends on D158056
| Assignee | |
Comment 7•3 years ago
|
Depends on D158057
Updated•3 years ago
|
Comment 9•3 years ago
|
Comment 10•3 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 11•3 years ago
|
Comment 12•3 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•3 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•3 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•3 years ago
|
