This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
At a recent WebApps Web Components f2f meeting, it was resolved to change custom pseudo elements to match via ::part(<part name>). The "pseudo" attribute should also change to "part." <div id="host"> SR <header part="header"></header> is matchable via a selector like: #host::part(header) { ... } See the meeting notes here: http://www.w3.org/2013/06/21-webapps-minutes.html
I would like to confirm nested shadow roots case. Suppose that we have the following: <style> div::part(header) { ... } </style> <div> SR <header part="header"></header> <div> SR <header part="header"></header> So the selector div::part(header) should match all the above <header>s? Or the selector should match only the first <header>?
Intuitively, I would think that part only applies in host's shadow tree, but then I have no idea how to reach the part in the nested tree.
> Intuitively, I would think that part only applies in host's shadow tree I agree. My understanding is that the left side of the ::part selector must be matchable. Therefore, in the example, it's only the outer header that matches since the div in shadowRoot not matchable. > I have no idea how to reach the part in the nested tree. This is why I proposed: https://www.w3.org/Bugs/Public/show_bug.cgi?id=22462
*** Bug 19891 has been marked as a duplicate of this bug. ***
*** Bug 20304 has been marked as a duplicate of this bug. ***
Spec has been updated. https://dvcs.w3.org/hg/webcomponents/rev/b5c338ac0790