W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: [webcomponents] Styling the shadow based on the host element

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 11 Feb 2013 16:49:04 -0800
Message-ID: <CAAWBYDAJdeukVTnSL9V5UXWbFKO5jE=TVhg5OdLGtG_-kcfLwQ@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps <public-webapps@w3.org>
On Mon, Feb 11, 2013 at 4:36 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/11/13 3:12 PM, Tab Atkins Jr. wrote:
>> What doesn't seem possible is to use the host element's qualities
>> (such as tagname, attributes, class, etc.) to style elements in the
>> shadow tree.
>
> Seems like a selector akin to :scope would work fine here, no?  Modulo
> deciding on a name for it...

The problem is that the host element isn't *in* the shadow tree at
all, so you can't use a pseudo-class.  That's why @host was necessary
in the first place, so we could provide a context for evaluating a
selector against something not in the tree.

~TJ
Received on Tuesday, 12 February 2013 00:49:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT