W3C home > Mailing lists > Public > www-style@w3.org > March 2014

RE: [css-variables] ...let's change the syntax

From: Jonathan Kingston <jonathan@jooped.co.uk>
Date: Sat, 29 Mar 2014 18:28:37 +0000
Message-ID: <CA+EVJMXFQSoA3TFGOMbnMBkb5isVT5ccdjrXn9iL09KzpdWdjA@mail.gmail.com>
To: www-style@w3.org
After careful review of the following message, I think I get the motivation
for this change a lot more than changing the syntax for variables.

Would it be worth instead of dropping the "--" prefix when in "var()" scope
dropping the use of "var()" when and where the parser could cope?

So for example, the following would be an issue
  height: --profile-image-heightpx;
So var would be used:
  height: var(--profile-image-height)px;

However this would be fine:
  color: --profile-heading-color;

This would give a similar feel to variable interpolation in many other
languages and template engines - it may also break the boundaries more of
users thinking it's main use is for variables.

(Resending this as it didn't appear to go through the first time - sorry if
there is a duplicate here)
Received on Saturday, 29 March 2014 22:11:18 UTC

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