Bug 92192

Summary: [Shadow DOM] descendant selector doesn't work across shadow boundaries.
Product: WebKit Reporter: Hajime Morrita <morrita>
Component: CSSAssignee: 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    

Description Hajime Morrita 2012-07-24 18:49:06 PDT
If an ascent is in light DOM and descendant is in shadow, descendant selector doesn't work.
Comment 1 Hajime Morrita 2012-07-24 19:18:21 PDT
*** Bug 89169 has been marked as a duplicate of this bug. ***
Comment 2 Shinya Kawanaka 2012-07-24 22:36:50 PDT
I'm not sure this is a desired behavior. I believe this is sometimes useful though...
Comment 3 Dominic Cooney 2013-01-07 23:24:11 PST
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.