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

Re: [csswg-drafts] [css-cascade] !default declarations proposal

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Mon, 05 Feb 2018 15:55:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-363127635-1517846145-sysbot+gh@w3.org>
I don't like `!important` very much, and this would be a similar hack. And I don't think it's necessary, because you should be able to achieve a similar behavior by using selectors with 0 specificity (#1170), e.g.

```css
:is(.default-theme button) {
  border: none; /* default */
}
```


-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2272#issuecomment-363127635 using your GitHub account
Received on Monday, 5 February 2018 15:55:59 UTC

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