[Bug 21390] [Shadow]: add support for styling shadowDOM contents based on host element

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21390

--- Comment #4 from Takashi Sakamoto <tasak@google.com> ---
(In reply to comment #3)

I'm sorry. I found
http://www.w3.org/TR/2012/WD-selectors4-20120823/#pseudo-elements

Only one pseudo-element may appear per selector, and only if the subject of the
selector is the last compound selector in the selector. If present the
pseudo-element must appear after the compound selector that represents the
subjects of the selector. 

So my examples are disallowed, because mutiple pseudo elements are specified.
(I don't know the future pseudo-elements and CSS selector... 
 c.f. A future version of this specification may allow multiple pseudo-elements
per selector.)

The spec also says:
"Syntactically, a pseudo-element may be followed by any combination of the user
action pseudo-classes. Whether these pseudo-classes can match on the
pseudo-element depends on the pseudo-class and pseudo-element”s definition:
unless otherwise-specified, none of these pseudo-classes will match on the
pseudo-element."

So we probably need to define what pseudo-classes can work with ::shadow.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 20 May 2013 15:10:50 UTC