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

Re: [css-syntax] value grammar, <value> type and browser implementations

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Tue, 05 Feb 2013 14:40:57 -0700
Message-ID: <51117C69.4040306@kozea.fr>
To: François REMY <francois.remy.dev@outlook.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Le 05/02/2013 13:55, François REMY a écrit :
> Nice! However, I still have one use case in mind the new syntax
> doesn't solve (in an elegant way): the operator symbols.
>
>      selector {
>         a: if(get(b)==none && get(c)<=2) { 0% } else { 100% };
>         b: some;
>         c: 3;
>      }
>
>      sub-selector {
>         b: none;
>         c: 1;
>      }

These are perfectly fine as far as Syntax is concerned.


> I would prefer the grammar of a property value to accept any token
> inside a block except block terminators <},],)> and not just a
> limited subset of tokens. But if there's a good reason to limit the
> subset, that's fine.

In the current draft only } ] ) cdo cdc bad-string and bad-url tokens 
are parse errors. I think we resolved yesterday to revert to preserving 
them in order to allow fine-grained error handling eg. in @media Media 
Queries.

-- 
Simon Sapin
Received on Tuesday, 5 February 2013 21:41:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT