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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 12 Feb 2015 08:18:27 +1100
Message-ID: <CAAWBYDD86P-VpDvONrv6u7XOTCwqsUSink9uCmf2R+VMGahidw@mail.gmail.com>
To: Steve Hansen <steve@2sky.be>
Cc: "www-style@w3.org" <www-style@w3.org>
On Tue, Feb 10, 2015 at 5:25 PM, 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

Yup, that's valid.

~TJ
Received on Wednesday, 11 February 2015 21:19:14 UTC

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