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

Re: [css-variables] the new ED for CSS Variables

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Sun, 19 Feb 2012 21:45:28 +0400
To: Lea Verou <leaverou@gmail.com>
Cc: Brian Kardell <bkardell@gmail.com>,www-style@w3.org
Message-Id: <1123771329673528@web62.yandex.ru>
19.02.2012, 05:24, "Lea Verou" <leaverou@gmail.com>:
> On 18/2/12 00:39, Marat Tanalin | tanalin.com wrote:
>
>> I think var- prefix is MUCH more intuitive, appropriate and preferable for CSS variables than data-. Using data- prefix for CSS-variables would be both confusing for authors and harmful for ability to add possible future features like described by Brian (<div data-foo="something"> => div{property: data(foo);}).
>
> Brian didn't describe a new feature, he just said that authors may
> confuse data() with something of the sort. Such a feature would be
> completely redundant, as it offers little benefit (if any) over
> attr(data-foo).

Main concern is confuseability of course.

As for the possible future data-attr-access CSS-feature though, with the same result we could say that we don't need element.dataset since we could just use element.getAttribute('data-foo').
Received on Sunday, 19 February 2012 17:46:00 GMT

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