W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [css-variables] Different syntax for variable definition and use

From: Brian Kardell <bkardell@gmail.com>
Date: Tue, 28 Aug 2012 19:34:42 -0400
Message-ID: <CADC=+jcOZ6yOZqpyC9pjT0PNZfiZ4C2wf8zx9f84juEFdobgPA@mail.gmail.com>
To: "Jens O. Meiert" <jens@meiert.com>
Cc: www-style@w3.org
On Aug 28, 2012 4:51 PM, "Jens O. Meiert" <jens@meiert.com> wrote:
> > 2. Defining Custom Properties: the ‘var-*’ family of properties
> >
> > 3. Using Variables - the ‘var()’ notation
> What is the benefit in declaring and using variables—the same
> variables—in such different ways? Are we not contracting a serious
> “development usability” problem?
> Why does the variable name need to be part of the declaration?
> And what are, pardon me Tab, the other “‘variable-like’ things” we
> would need the “$” syntax for if there is, so the community, such
> immense immediate need for variables in CSS now, right at this moment?
> I argue that the syntax should be as simple and consistent as
> possible, probably well borrowing from another language, and that if
> there is no immediate need for something else that is “variable-like,”
> it shouldn’t influence the spec in such a dramatic fashion.
> (While this probably sounds all more dramatic than I meant it to sound :)
> --
> Jens O. Meiert
> http://meiert.com/en/
It seems to me that the bulk of community feedback on twitter, all of the
blogs dealing with this, etc. are now more or less in agreement with the
general statements:

We don't need to use $ for this
They are actually better described as custom properties
The left and right don't need to match forms (in fact, it seems there is
agreement that in fact they probably shouldn't)
Aside from the three characters "var" it is pretty good.

Do you feel that is incorrect?  Can you point to somewhere I am not many
seeing others who still are not on that page?  Do you have an alternate
proposal which has not been considered or is it about $ on both sides as
discussed earlier?
Received on Tuesday, 28 August 2012 23:35:10 UTC

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