W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: [selectors4][css3-syntax] an+b corner case

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Mon, 30 Apr 2012 20:13:57 +0200
Message-ID: <4F9ED665.5040007@kozea.fr>
To: www-style@w3.org
Le 30/04/2012 19:55, Tab Atkins Jr. a écrit :
> On Mon, Apr 30, 2012 at 10:53 AM, Kang-Hao (Kenny) Lu
> <kennyluck@csail.mit.edu>  wrote:
>> >  I think this prose should be written to have a dependency on css3-syntax
>> >  or perhaps css3-syntax could just take over it.
> Nah, this can be handled solely using the CSS2.1 Grammar, it just
> needs more prose thrown at it.

I can’t find the message anymore, but I remember a suggestion of 
serializing tokens back to a CSS string, and re-parsing an+b with a 
different lexer/parser.

I think it would work well. For example, 2n-1 and 2n/**/-1 are made of 
different tokens but would be serialized back to the same string, once 
the comments are removed.

Simon Sapin
Received on Monday, 30 April 2012 18:14:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:58 UTC