- From: Marat Tanalin <mtanalin@yandex.ru>
- Date: Tue, 17 Mar 2015 04:30:30 +0300
- To: Tab Atkins Jr. <jackalmage@gmail.com>, www-style list <www-style@w3.org>, Alice Boxhall <aboxhall@google.com>
17.03.2015, 02:22, "Tab Atkins Jr." <jackalmage@gmail.com>:
> The 'all' property, when you "all: initial" or "all: unset", also
> resets the 'outline' property. šThis is troublesome.
> I don't know how to fix this. :/ šWe probably dont' want to exclude
> 'outline' from being reset by 'all'.
Just add an exclusion mechanism:
.example {
all: initial;
all-exclude: outline display;
/* Now we have reset all properties
except for `outline` and `display`. */
}
Equivalent shorthand notation:
.example {
all: initial outline display;
}
Alternatively, a function like `exclude()` could be used:
.example {
all: initial exclude(outline display);
}
Received on Tuesday, 17 March 2015 01:31:03 UTC