- From: Stanislav Lashmanov via GitHub <sysbot+gh@w3.org>
- Date: Sun, 04 Feb 2018 20:21:56 +0000
- To: public-css-archive@w3.org
CyberAP has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-cascade] !default declarations ==
`!default` declarations, opposite to `!important` declarations, could set a default property value, if it has not been set yet, or if another `!default` declaration is more specific.
Consider this example:
```html
<body class="default-theme new-theme">
<button>Style me!</button>
</body>
```
```css
.new-theme button {
border: thin solid black;
}
button {
border: 1px dotted grey !default;
}
.default-theme button {
border: none !default;
}
```
The button would have a thin solid black border in result. Having the `!default` declaration possible would make it so much easier to do theming or reset CSS.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2272 using your GitHub account
Received on Sunday, 4 February 2018 20:22:00 UTC