Re: [css-syntax][css-variables] Extend !important to !<anything>*

Le 14/06/2013 15:29, Tab Atkins Jr. a écrit :
> On Fri, Jun 14, 2013 at 2:04 PM, Simon Sapin<simon.sapin@exyr.org>  wrote:
>> I think we should generalize the !important syntax to enable more
>> annotations of the same kind. We should do it now, even if we don’t define
>> any such annotation yet.
>>
>>
>> Immediate proposal:
>>
>>    Change <any-value> in Variables to not accept a top-level '!' token. This
>> reserves '!' in a declaration value followed by anything, for future
>> extension.
>>
>>
>> Later proposal:
>>
>>    Instead of an "important" flag, declarations at the Syntax level have a
>> set of "annotations". The order of annotations is not significant. Each
>> annotation is a list of component values, like the declaration value.
> I was*just about*  to send this email myself.  I agree with every
> detail - declarations should have a "value" and a "bang value" or
> "annotation value", both of which are lists of tokens.  You switch
> into "annotation mode" when you see the first ! delim token in the
> declaration.
>
> So, strong +1 from me.


Cool. I think we’ll want not just one but a set of bang/annotation values:

   var-highlight-color: #0099cc !important !type(color);

But that’s part of the details we can figure out as we go along.

Cheers,
-- 
Simon Sapin

Received on Friday, 14 June 2013 14:45:18 UTC