W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css-scoping] Combining :host-context and :host selector

From: Rune Lillesveen <rune@opera.com>
Date: Wed, 11 Feb 2015 22:11:15 +0100
Message-ID: <CANz6XvTw4BSG4iZUS6_Cr2JZV9w-rwyMvwYH=_ovQKDA_QkR-A@mail.gmail.com>
To: Steve Hansen <steve@2sky.be>
Cc: "www-style@w3.org" <www-style@w3.org>
On Tue, Feb 10, 2015 at 7:25 AM, Steve Hansen <steve@2sky.be> wrote:

> I was wondering if anyone has some exact information if the following css
> selector is allowed:

> <style>
>   :host-context(.blocky):host(:hover) {
>     display: block;
>     background: red;
>   }
> </style>
>
> Chrome handles the selector correctly.
>
> An example can be found here: http://jsbin.com/diburokino/1/edit?html,output

I can't think of a reason why it shouldn't work. :host-context and
:host would both match the same shadow host.

-- 
Rune Lillesveen
Received on Wednesday, 11 February 2015 21:11:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC