VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1744231

⇱ 1744231 - Implement container relative length units


Closed Bug 1744231 Opened 4 years ago Closed 3 years ago

Implement container relative length units

Implement container relative length units
Core
CSS Parsing and Computation
unspecified
Unspecified
Unspecified
enhancement
Points:
---
RESOLVED FIXED
RESOLVED
FIXED
108 Branch
Iteration:
---
a11y-review
Accessibility Severity
Performance Impact
Size Estimate
Webcompat Priority
Webcompat Score
Tracking Status
firefox108 --- fixed
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
thunderbird_esr153
firefox-esr115
firefox-esr140
firefox-esr153
firefox108
firefox152
firefox153
firefox154
---
QA Whiteboard:
---
Has STR:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 

CSS Containment Module Level 3 defines different container relative length units. Those units are cqw, cqh, cqi, cqb, cqmin, cqmax.

Sebastian

Updated

4 years ago
Keywords: dev-doc-needed

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
Depends on: 1778989
Assignee

Updated

3 years ago
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Assignee

Updated

3 years ago
Blocks: 1769236
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

Attachment #9296029 - Attachment description: Bug 1744231: Part 5 - Recascade children when `container-type` changes. r=#layout-reviewers → Bug 1744231: Part 5 - Rematch all descendants when `container-type` changes. r=#layout-reviewers

Comment 8

3 years ago
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/840bdd4142f4 Part 1 - Implement parsing of container relative lengths. r=emilio https://hg.mozilla.org/integration/autoland/rev/0792a4e5363e Part 2 - Centralize construction of `computed::Context`. r=emilio https://hg.mozilla.org/integration/autoland/rev/361c82fbc7a8 Part 3 - Flag computed styles of elements with `container-type: *size` set & propagate them to their descendants. r=emilio https://hg.mozilla.org/integration/autoland/rev/7e4e5ed528ef Part 4 - Enable lookup and computation of container size queries. r=emilio https://hg.mozilla.org/integration/autoland/rev/c2f047ea3f07 Part 5 - Rematch all descendants when `container-type` changes. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/36502 for changes under testing/web-platform/tests

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?

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

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
Blocks: 1769946
Assignee

Updated

2 years ago
Duplicate of this bug: 1769946
You need to log in before you can comment on or make changes to this bug.