Bug 92192
| Summary: | [Shadow DOM] descendant selector doesn't work across shadow boundaries. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Hajime Morrita <morrita> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | dominicc, shinyak |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jsfiddle.net/ybyf4/ | ||
| Bug Depends on: | |||
| Bug Blocks: | 72352, 59827 | ||
Hajime Morrita
If an ascent is in light DOM and descendant is in shadow, descendant selector doesn't work.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Hajime Morrita
*** Bug 89169 has been marked as a duplicate of this bug. ***
Shinya Kawanaka
I'm not sure this is a desired behavior. I believe this is sometimes useful though...
Dominic Cooney
The spec is quite specific on this point: <http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles>
"Even when the apply-author-styles is set, the selectors still must not cross the shadow boundary per scoping constraints. In other words, with apply-author-styles set, the document CSS rules only match wholly inside or outside of the shadow tree."
This is the wrong forum for a spec bug; it should be taken up in the W3C.