W3C home > Mailing lists > Public > www-style@w3.org > November 2015

Re: [css-variables] -- considered harmful

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 4 Nov 2015 12:37:34 -0800
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style@w3.org
Message-ID: <563A6C8E.2040300@inkedblade.net>
On 11/02/2015 03:17 AM, Daniel Glazman wrote:
> On 02/11/2015 11:22, Simon Sapin wrote:
>> On 02/11/15 10:57, Daniel Glazman wrote:
>>> I don't think we should be able to give the same name to a property and
>>> a custom property
>> Are you suggesting that we should forbid '--X' or '$X' (whatever the
>> syntax is) custom properties for any non-custom property 'X'? What
>> happens when we add new non-custom properties?
> Yes. I think a line in the prose saying that existing property names
> are not allowed would be enough. 'background: var(--background)' is
> probably bad practice anyway.

I think making such things invalid is a non-starter. No other language
has such rules, and neither should we. And also, as Simon points out,
we would end up making perfectly valid variables invalid as we extend
CSS. This is really an unworkable proposal.

Received on Wednesday, 4 November 2015 20:38:05 UTC

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