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

Re: [css-variables] Can custom properties be reset with all?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 30 Nov 2015 20:24:52 -0800
Message-ID: <CAAWBYDBUN+yCKnBFQUuni_2eRvFWYO2SVDKowszbGoy2uykR0A@mail.gmail.com>
To: Philip Walton <philip@philipwalton.com>
Cc: www-style list <www-style@w3.org>
On Sun, Nov 29, 2015 at 10:34 AM, Philip Walton <philip@philipwalton.com> wrote:
> So, the spec seem to be pretty clear about this:
>
>> Custom properties are not reset by the all property. We may define a
>> property in the future that resets all variables.
>
> The thing is, I've read comments by several people (including the spec
> editor) that specifically mention using `all: initial` for custom property
> resetting. For example, in this Github comment Tab says:
>
>> Sure we can...that's what `all: initial` is for. (Alternately, an
>> equivalent of all for just custom properties has been proposed; it would be
>> called --, as in --: initial.) You can then let particular custom properties
>> thru with --foo: inherit.
>
> In addition, Firefox, Chrome Canary, and Webkit Nightly all reset custom
> property definitions when using all.
>
> So I guess in addition to the question I posed in the subject line, is this
> a recent change?

Note: I'm sometimes dumb and forget my own specs.  The "'all' does not
reset custom properties" is an old dictate, and I forgot about it.

I should move up my plans for a -- property then, I guess.

~TJ
Received on Tuesday, 1 December 2015 04:25:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:35 UTC