W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Re: 'all' and the system focus outline

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>
Message-Id: <1475261426555830@web3g.yandex.ru>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:52 UTC