W3C home > Mailing lists > Public > www-style@w3.org > October 2013

Re: [css-syntax] Multiple !values

From: Simon Pieters <simonp@opera.com>
Date: Tue, 29 Oct 2013 13:38:56 +0100
To: "www-style@w3.org list" <www-style@w3.org>, "Simon Sapin" <simon.sapin@exyr.org>
Message-ID: <op.w5puq6gqidj3kv@simons-macbook-pro.local>
On Tue, 29 Oct 2013 11:35:36 +0100, Simon Sapin <simon.sapin@exyr.org>  
wrote:

> Hi,
>
> At the moment, the draft defines a single boolean flag on declarations  
> for !important. Issue 3 suggest generalizing that to arbitrary values.
>
> http://dev.w3.org/csswg/css-syntax/#issue-5cca2746
>
> One possible use case that we discussed is adding type annotations to  
> Custom Properties for enabling interpolation:
>
>    var-foo: red !type(color);
>
> However, as we don’t know yet which syntax we want…
>
>    var-foo: red !important !type(color);
>    var-foo: red !important type(color);
>    var-foo: red !important, type: color;

I think the first one is best because it means you can add and remove  
!important or change the order without having to think about the ! being  
separate.

> I suggest closing the issue for now and deferring this to a future level  
> of Syntax, when we have a CSS feature that uses this.

I agree.

-- 
Simon Pieters
Opera Software
Received on Tuesday, 29 October 2013 12:39:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 29 October 2013 12:39:28 UTC