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

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

From: Florian Rivoal <florianr@opera.com>
Date: Wed, 04 Apr 2012 08:18:31 +0200
To: www-style@w3.org
Message-ID: <op.wb7845jt4p7avi@eeeflorian>
On Tue, 03 Apr 2012 03:31:47 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  

> 2) Treat !important like normal, and have it effect the cascade (and
> not be part of the variable's value)

I think I like a non listed variant of 2: treat !important at the end of a  
data- property normally. Any other !important in the data- property causes  
properties into which it is expanded to be invalid.

This is close to 2b, but different in this case for example:

ul {
  data-foo: !important !important;
  data-bar: red;
  background-color: data(bar) data(foo);

  - Florian
Received on Wednesday, 4 April 2012 06:14:14 UTC

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