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

Re: [css-variables][naming] Renaming 'var'

From: Pete Boere <pete@the-echoplex.net>
Date: Tue, 16 Apr 2013 08:42:15 +0100
Message-ID: <CAKZZz6d=AA7QguP=pJQbt=tAbqbbVYJYF4eO383tHpqQ2EN+fg@mail.gmail.com>
To: Sylvain Galineau <galineau@adobe.com>
Cc: "Jens O. Meiert" <jens@meiert.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
> var-purple: green;
> var-color: red;
> Šis obviously less confusing?

Beacuse if I'm styling a web page with coca-cola branding I'll want to use
a variable named 'red' to store the exact brand color. Since 'red' is also
color keyword, 'set-red' to me implies you might be messing with the
keyword value itself.

'var-' is less generic than 'set-', so the intention is clearer.

Pete Boere
Web Developer
Received on Tuesday, 16 April 2013 07:43:08 UTC

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