W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

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

From: Man Hoang via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 Feb 2017 09:41:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-278899819-1486719689-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:29 UTC