Closed Bug 1787173 Opened 2 years ago Closed 2 years ago

Expose CSSContainerRule containerName

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: nchevobbe, Assigned: emilio)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

As we want to display container queries on top of rules in DevTools Inspector's rule view, we would need a way to retrieve the container-name used in the query.

There are some discussion on the spec to expose the container name for a given CSSContainerRule (https://github.com/w3c/csswg-drafts/issues/7190), but until then, maybe we could have a simple method on InspectorUtils, or a Chrome-only exposed containerName property (Emilio might have better opinion about which form this should take at the moment).

Blocks: 1787175
Assignee: nobody → emilio
Flags: needinfo?(emilio)

This implements https://github.com/w3c/csswg-drafts/pull/7293, pending a
spec resolution, so landing test as tentative for now, but the change
makes sense.

Flags: needinfo?(emilio)
Blocks: 1786830
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0a2ff7dadf29
Improve CSS OM for CSSContainerRule. r=nchevobbe
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35734 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Keywords: dev-doc-needed

FF110 docs for this can be tracked in https://github.com/mdn/content/issues/25398 (all done). Note, that is not a typo. FF106 is the indicated version here, but browser compat indicates delivery in FF110, as does local testing.

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

Attachment

General

Created:
Updated:
Size: