W3C home > Mailing lists > Public > www-style@w3.org > February 2013

Re: [css-variables] fallback value handling needs better definition

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 28 Feb 2013 01:12:12 -0800
Message-ID: <CAAWBYDAvYzKFa2ZuNp2jByDoimSayvQtg=sLjBWdzE2-o30x9Q@mail.gmail.com>
To: John Daggett <jdaggett@mozilla.com>
Cc: www-style list <www-style@w3.org>
On Wed, Feb 27, 2013 at 4:17 PM, John Daggett <jdaggett@mozilla.com> wrote:
> Tab Atkins wrote:
>> > So what is the use case that benefits from having a fallback
>> > value, since it's basically only a fallback for undefined
>> > variables?  Seems like unnecessary complexity for level 1.
>> Nope, quite useful for the theming use-case, where you use some
>> variables in your component that may or may not be defined by the
>> final author of the page.
> Ah, that makes sense.  Might be nice to have a note somewhere pointing
> out that use case.

I added an example illustrating this use-case exactly due to an
unrelated edit you requested in another thread.

Received on Thursday, 28 February 2013 09:12:59 UTC

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