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

Re: [csswg-drafts] Limitations on host context selection

From: Man Hoang via GitHub <sysbot+gh@w3.org>
Date: Sun, 07 May 2017 13:11:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-299705480-1494162677-sysbot+gh@w3.org>
What about introducing `:parent-context(<compound-selector>)`? Unlike `:host-context(<compound-selector>)`, which matches the host if a parent element matches `<compound-selector>`, `:parent-context` only matches a parent element.
``` css
:parent-context(.ui-light) :host(.on) { ... }
```

-- 
GitHub Notification of comment by jolleekin
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1164#issuecomment-299705480 using your GitHub account
Received on Sunday, 7 May 2017 13:11:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC