Re: [css3-syntax] Critique of Feb 15 draft

On 2013-02-17 1:28 PM, L. David Baron wrote:
> On Sunday 2013-02-17 13:08 -0500, Zack Weinberg wrote:
>> First, white space's significance in selectors is a design error which
>> should not be allowed to creep into other contexts.  It would be good,
>> therefore, to exclude whitespace tokens from appearing in any list
>> other than the prelude of a qualified rule.  This would also simplify
>> many of the algorithms in this section, which would no longer need to
>> mention that they discard whitespace.
>
> There are two other cases where we've made whitespace significant
> (both, perhaps, resulting from other bugs in the tokenization,
> namely than - is an identifier character and that ident + "(" is a
> totally different token):
>   * we require whitespace around + and - in calc()
>   * we require whitespace after 'not' and around 'and' and 'or' in
>     @supports
>
> I prefer to require whitespace in these contexts than have the
> bizarre behavior that would otherwise result.

Doh, you're right.  I completely forgot about those.  Scratch this 
suggestion, then.

zw

Received on Tuesday, 19 February 2013 03:16:54 UTC