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

Re: [css-syntax] Multiple !values

From: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Tue, 29 Oct 2013 22:41:17 +0100
Message-ID: <CAERejNa7tqV-9zFq68yHoLUd6rKv=PjoUMCZ7T8jxbR8y05dtg@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: Simon Pieters <simonp@opera.com>, "www-style@w3.org list" <www-style@w3.org>, Simon Sapin <simon.sapin@exyr.org>
On 29 October 2013 18:59, fantasai <fantasai.lists@inkedblade.net> wrote:

> On 10/29/2013 05:38 AM, Simon Pieters wrote:
>
>> 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<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.
>>
>
> This makes sense to me, too.
>
> Also, if each one is preceded by !, you don't need so many parentheses:
>
>   var-foo: red !important !type color;
>
> which is, imho, preferable.


As Simon already said, let's discuss that again as soon as work on level 2
of CSS Custom Properties has started.

Sebastian
Received on Tuesday, 29 October 2013 21:42:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:16 UTC