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

Re: [csswg-drafts] [selectors] Selectors in ::slotted don’t affect specificity

From: Nadya678 via GitHub <sysbot+gh@w3.org>
Date: Mon, 05 Feb 2018 22:09:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-363238180-1517868566-sysbot+gh@w3.org>
Workaround
```
<style>
  /* ... */
  html ::slotted(main) 
  {
    background-color: blue;
  }
  ::slotted(*) 
  {
    background-color: red;
  }
</style>
<slot></slot>

-- 
GitHub Notification of comment by Nadya678
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2271#issuecomment-363238180 using your GitHub account
Received on Monday, 5 February 2018 22:09:30 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC