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

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

From: Steve Hansen <steve@2sky.be>
Date: Tue, 10 Feb 2015 06:25:43 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <AM3PR06MB42022CECDE8046374C2CEE1F1270@AM3PR06MB420.eurprd06.prod.outlook.com> (sfid-20150210_062716_309179_B751FA5D)
Hey,

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

Regards,
Steve
Received on Wednesday, 11 February 2015 19:53:48 UTC

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