Re: 'all' and the system focus outline

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