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

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