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

Re: [csswg-drafts] [selectors4] Name the “functional pseudo-class like :matches() with 0 specificity”

From: Thomas ZILLIOX via GitHub <sysbot+gh@w3.org>
Date: Tue, 10 Jul 2018 14:34:33 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-403845043-1531233272-sysbot+gh@w3.org>
And what about a `:0()` selector?
It's actually mean that it does something special. The zero is not explicit, but it is at least logical.

```css
a:0([href^="http"]) {
    /* external link default style, does not override any 'a:hover' styles */
}
```

```css
:0(.block) {
    /* opting out of specificity entirely */
}
```

Cheers,
Thomas.

-- 
GitHub Notification of comment by tzi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2143#issuecomment-403845043 using your GitHub account
Received on Tuesday, 10 July 2018 14:35:07 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 19 September 2019 01:18:59 UTC