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

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

From: Zack Weinberg <zackw@panix.com>
Date: Mon, 18 Feb 2013 22:16:25 -0500
Message-ID: <5122EE89.7040700@panix.com>
To: "L. David Baron" <dbaron@dbaron.org>
CC: www-style@w3.org
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 GMT

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