W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > August 2012

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 03 Aug 2012 18:56:09 +0000
Message-Id: <E1SxN2f-0003mI-Dx@jessica.w3.org>
To: public-webapps-bugzilla@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 3 August 2012 18:56:10 GMT