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

Re: [css-variables] -- considered harmful

From: Simon Sapin <simon.sapin@exyr.org>
Date: Mon, 2 Nov 2015 19:14:21 +0100
To: www-style@w3.org
Message-ID: <5637A7FD.70505@exyr.org>
On 02/11/15 12:17, 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.

Sorry, I should clarify. By "forbid", I meant making it an 
implementation requirement to drop such declarations, like for syntax 
errors. I think this would be problematic as introducing any non-custom 
property becomes a breaking change, as existing stylesheets might be 
relying that name already.

By "not allowed", it sounds like maybe you mean an author requirement, 
which would only be checked by a conformance checker ("validator"). 
That’s less problematic, but also has much less effect: relatively few 
authors read the spec or run a conformance checker.

Simon Sapin
Received on Monday, 2 November 2015 18:14:55 UTC

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