W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: Feedback and questions on shadow DOM and web components

From: Angelina Fabbro <angelinafabbro@gmail.com>
Date: Tue, 13 Nov 2012 19:48:56 -0800
Message-ID: <CAG57-HPyqYcmbMB5Tx2ctxoUdbjpM8vPMNq2wFfBtWNe=umJng@mail.gmail.com>
To: Mike Taylor <miket@opera.com>
Cc: public-webapps@w3.org
I was having an exchange with a gentleman named Tom Ashworth that made it's
way off list.

What he had said to me in a previous message about @host:

"@host { } is weird. As far as I can tell, nothing inside it will be
applied unless the matched element is the shadow host. The spec says 'must
only be matched against the shadow host of the shadow DOM subtree in which
the style is specified', and this seems to be how things act in Chrome:
changing your example to @host { ul { background: red; } } works,
presumably because it matches the host. I've tried using a class, id and
even a crazy attribute selector (*[is="news"]) and they all work, but no
other rules do."

On Tue, Nov 13, 2012 at 7:29 PM, Mike Taylor <miket@opera.com> wrote:

> On 11/13/12 6:23 PM, Angelina Fabbro wrote:
>> Good to know I can style the shadow DOM hosts this way.
> The message you're replying to never made it to the list. Can you re-post
> it for context?
> thanks,
> --
> Mike Taylor
> Opera Software
Received on Wednesday, 14 November 2012 03:49:43 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:50 UTC