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: Thu, 05 Apr 2012 08:55:47 +0200
Message-ID: <4F7D41F3.4030901@kozea.fr>
To: www-style@w3.org
Le 05/04/2012 04:07, Tab Atkins Jr. a écrit :
> An
> !important anywhere else in the var property is a syntax error.

Is it an error for the var property (the data-foo declaration is 
ignored) or where it is expanded? (var() resolves to an invalid variable)

To be clear, !important is, after removing comment tokens, any sequence 
of DELIM S* IDENT tokens where the first token is '!' and the last, 
after being unescaped and lower-cased, is 'important'. Is this correct?

-- 
Simon Sapin
Received on Thursday, 5 April 2012 06:56:17 GMT

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