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

[csswg-drafts] [css-cascade] !default declarations

From: Stanislav Lashmanov via GitHub <sysbot+gh@w3.org>
Date: Sun, 04 Feb 2018 20:21:56 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-294227134-1517775715-sysbot+gh@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:

<body class="default-theme new-theme">
  <button>Style me!</button>

.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

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