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

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

From: Jens O. Meiert <jens@meiert.com>
Date: Wed, 29 Aug 2012 22:12:56 -0700
Message-ID: <CAJ0g8QTJSbS+y_mWuXRWmtcir54O37c6CM9AjTWCgnSjBuF=TA@mail.gmail.com>
To: Brian Kardell <bkardell@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style@w3.org
> > > > “var-foo” appears to mean the variable is called “var-foo”; but with
> > > > “var(foo)”, the variable seems to be called “foo".
> > >
> > > I think it's pretty clear:
> >
> > “The hyphen (‐) is a punctuation mark used to join words and to
> > separate syllables of a single word.” [1]
>
> I would like to state that I don't find this line of reasoning particularly
> compelling: The majority of CSS authors are not linguists either... but they
> are intimately familliar with css and with the modularization of CSS

Looking at the spec, the thread, and alternatives I think this is all
a fine mess :P

What is so wrong with

bar { var(foo): 20px; }
baz { margin: var(foo); }

…?

-- 
Jens O. Meiert
http://meiert.com/en/
Received on Thursday, 30 August 2012 05:13:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:59 GMT