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

[css3-syntax] Added an "an+b parsing" section, please review

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 31 Jan 2013 18:30:07 -0800
Message-ID: <CAAWBYDACcDbT3+0N0us01s6pv8yVrCaryO1Y-MZ+8uXjwHOOrA@mail.gmail.com>
To: www-style list <www-style@w3.org>
I added a small algorithm for parsing an+b values at
<http://dev.w3.org/csswg/css3-syntax/#parse-anb-notation>.  It's just
a "turn everything back into a string and reparse" algorithm.

Does it look good?  Alternately, I could do it by looking at the
original tokens, it's just a bit messier that way.  There's 6
different ways a valid an+b can be tokenized, and one of them involves
a dimension token with a unit matching /n[+-]\d+/.

~TJ
Received on Friday, 1 February 2013 02:30:55 GMT

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