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

Re: [css-variables] Should var properties respect !important?

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Tue, 03 Apr 2012 09:30:02 +0200
Message-ID: <4F7AA6FA.3010806@kozea.fr>
To: www-style@w3.org
Le 03/04/2012 09:20, Christoph Päper a écrit :
> Tab Atkins Jr.:
>> 2) Treat !important like normal, and have it effect the cascade
> Of course. ‘var*’ should not behave differently than every other property – not more than absolutely necessary that is.

I agree. First, as an implementer, I don’t like special-casing when the 
same code could for everything. But also for authors: more complex 
cascading rules (the declaration that "wins" is not the same if the name 
starts with "data-"?) are more difficult to understand/remember/map to a 
mental model.
Received on Tuesday, 3 April 2012 07:30:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:57 UTC