[Bug 18483] [Shadow]: Shared stylesheets may make @host ambiguous

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

--- Comment #1 from Tony Ross [MSFT] <tross@microsoft.com> 2012-08-03 18:56:09 UTC ---
Presumably the host element contains some piece of information (e.g. a class or
attribute) which identified it as a particular widget type in the first place. 

Perhaps if @host was expanded to allow selector blocks for clarifying which
host should match (think elm.matchesSelector) this would be solved. If I
understand correctly, this aligns with Roland's original proposal for @host in
bug 16519:

> Another brainstorming thought: what about a @host rule instead? This would have
> the advantage that the breaking behavior is explicit, and makes sure only the
> host element is affected (rules inside @host can match the host element only)
> E.g.:
> 
> @host {
>   div { background-color: white; }
>   .warning { background-color: yellow; }
>   .important .warning { background-color: orange; }
> }

-- 
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 Friday, 3 August 2012 18:56:10 UTC