- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Tue, 19 Oct 2021 11:02:57 +0000
- To: public-css-archive@w3.org
FWIW I ran into a use case today, involving [custom selectors](https://drafts.csswg.org/css-extensions/#custom-selectors) as well. I wanted to abstract away a certain aspect of my web component, so I tried defining these: ```css @custom-selector :--horizontal :is( :host-context(bar-chart:not([orientation])), :host-context(bar-chart:not([orientation])) *, :host-context(bar-chart[orientation="horizontal"]), :host-context(bar-chart[orientation="horizontal"]) * ); @custom-selector :--vertical :is( :host-context(bar-chart[orientation="vertical"]), :host-context(bar-chart[orientation="vertical"]) * ); ``` But alas, it didn't work because `:host-context()` does not work in `:is()`. -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6420#issuecomment-946612479 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 19 October 2021 11:03:04 UTC