Closed Bug 1117572 Opened 9 years ago Closed 6 years ago

Implement >>> Selecting Through Shadows Selector for access into shadow root

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mail, Unassigned)

References

(Blocks 1 open bug)

Details

The "selecting through shadows selector" (also referred to "shadow-piercing descendant combinator") allows selecting elements within regardless of them being in a ShadowRoot or nested ShadowRoot or not. It is somewhat similar to ::shadow [1].

Note: The ">>>" selector used to be called "/deep/" (and is currently implemented in Chrome as "/deep/".

Link to specification for reference: http://dev.w3.org/csswg/css-scoping-1/#deep-combinator

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1112251
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
See Also: → 1112251
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Hardware: x86 → All
Version: 37 Branch → unspecified
We should not implement this until there's agreement that this is actually desired. See https://github.com/w3c/webcomponents/issues/78.
It seems that Chrome 60 will be treating the >>> combinator as the descendant combinator, so perhaps it would be wise to simply follow suit?

https://developers.google.com/web/updates/2017/06/chrome-60-deprecations#make_shadow-piercing_descendant_combinator_behave_like_descendent_combinator
Blocks: 1439153
Thomas, as per comment 1 I don't think we should implement this. There's no agreement on this feature.
I agree, but we may wish to wait and see if we need to support it as a descendant combinator as Chrome does per comment 2 (for the sake of webcompat).
Depends on: 1441136
No longer depends on: 1441136
Based on the current state of the spec issues -> WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.