Re: [csswg-drafts] [selectors] Context selectors' limitation

I should have used a more general selector than `dir=rtl`. For 
example, I want to style `x-toggle` based on the UI mode of the host 
context.
``` css
.ui-light x-toggle.on { ... }
.ui-light x-toggle.off { ... }

.ui-dark x-toggle.on { ... }
.ui-dark x-toggle.off { ... }
```
How can this be achieved within the style tag of `x-toggle`?

-- 
GitHub Notification of comment by jolleekin
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1013#issuecomment-278899819
 using your GitHub account

Received on Friday, 10 February 2017 09:41:37 UTC