Re: [css-variables] -- considered harmful

> On Nov 2, 2015, at 03:17, Daniel Glazman <daniel.glazman@disruptive-innovations.com> 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.
> 
> </Daniel>

While I agree that -- is terribly inelegant and makes my insides churn every time I see it, using existing property names as custom properties was one of the prime use cases, I believe: for creating polyfills.

~Lea

Received on Monday, 2 November 2015 13:56:48 UTC