W3C home > Mailing lists > Public > www-style@w3.org > December 2008

Re: Allow whitespace before the commas?

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 8 Dec 2008 21:08:08 -0800
To: fantasai <fantasai.lists@inkedblade.net>
Cc: Krzysztof MaczyƄski <1981km@gmail.com>, www-style@w3.org, Bert Bos <bert@w3.org>
Message-ID: <20081209050808.GA15235@pickering.dbaron.org>

On Monday 2008-12-08 20:47 -0800, L. David Baron wrote:
> In other words, instead of the above two changes, change:
>   # simple_selector
>   #   : element_name [ HASH | class | attrib | pseudo ]*
>   #   | [ HASH | class | attrib | pseudo ]+
>   #   ;
> to be either:
>   # simple_selector
>   #   : element_name [ HASH | class | attrib | pseudo ]* S*
>   #   | [ HASH | class | attrib | pseudo ]+ S*
>   #   ;
> or probably preferably:
>   # simple_selector
>   #   : [ element_name [ HASH | class | attrib | pseudo ]* |
>   #       [ HASH | class | attrib | pseudo ]+ ] S*
>   #   ;

To be clear, the above edit is for CSS 2.1 appendix D.  I now see
that your proposal was actually for selectors3; CSS 2.1 doesn't have
the "TILDE S*".

In http://dev.w3.org/csswg/selectors3/#w3cselgrammar the appropriate
change equivalent to the above would be in the production for
simple_selector_sequence, which I think we should probably also
make.  That said, for selectors3, that means that the overall
selector production has trailing whitespace, which I think is
probably a good thing, although others may disagree.

(For selectors3, this is ISSUE-80.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Tuesday, 9 December 2008 05:08:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:17 GMT