[Bug 17674] [Shadow]: /select/ combinator not included in rule applicability algorithm

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

--- Comment #4 from Dominic Cooney <dominicc@chromium.org> 2012-07-30 00:36:52 UTC ---
I think this should be reopened. I’m pasting my comment from
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=17590#c2> here:

(snip)

The spec contains this language:

"CSS rules declared in a shadow DOM subtree must not apply in the document
tree"

I think an exception needs to be carved out for @host rules and rules using
/select/.

There is a quasi-exception in the form of a conflicting requirement for @host:

"The declarations in the @host @-rule must be applied to the shadow host of the
shadow DOM subtree in which the style is specified."

But I think the first requirement needs to be articulated to mention @host and
/select/. It would be nice if the CSS application algorithm could specify all
of this too.

(/snip)

As it stands it seems like

content /select/ .foo

can be optimized to a no-op, because irregardless of what the selector matches,
it is outside of the shadow subtree, so it must not apply.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 30 July 2012 00:36:54 UTC