Closed Bug 2022827 Opened 4 months ago Closed 3 months ago

Implement CSSContainerRule.conditions

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
relnote-firefox --- 151+
firefox151 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

No description provided.

Needs tests too of course.

Attachment #9552243 - Attachment description: Bug 2022827 - Implement CSSContainerRule.conditions. r=alaskanemily!,#webidl! → WIP: Bug 2022827 - Implement CSSContainerRule.conditions. r=alaskanemily!,#webidl!

For quickly making up some tests, I think the cases from the WPT for comma-separated queries could be reused to start.

Keywords: dev-doc-needed
Attachment #9552243 - Attachment description: WIP: Bug 2022827 - Implement CSSContainerRule.conditions. r=alaskanemily!,#webidl! → Bug 2022827 - Implement CSSContainerRule.conditions. r=alaskanemily!,#webidl!
Blocks: 2023125
Severity: -- → S3
Priority: -- → P3
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/58764 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Upstream PR merged by moz-wptsync-bot
Type: defect → enhancement

[Why is this notable]: New API replacing existing API
[Affects Firefox for Android]: yes
[Suggested wording]: A new CSSContainerRule.conditions property got introduced holding an array of all container query conditions. This new property is meant to replace CSSContainerRule.containerName and CSSContainerRule.containerQuery, which only supported a single name and query, making them obsolete.
[Links (documentation, blog post, etc)]:
https://groups.google.com/a/mozilla.org/g/dev-platform/c/9NsbuM3nfoI/m/1HWO7dhDAAAJ

This change goes hand in hand with support for multiple comma-separated conditions in @container, which is implemented in bug 2019254. So when that lands, maybe both should be combined in a single release note.

Sebastian

relnote-firefox: --- → ?
See Also: → 2019254

Added to the Fx151 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx151 release notes.

QA Whiteboard: [qa-triage-done-c152/b151]

Added to the final Fx151 release notes

FF151 MDN docs work for this tracked in https://github.com/mdn/content/issues/43864 (complete, being reviewed)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: