Commit Graph

2 Commits

Author SHA1 Message Date
Manish Goregaokar
652a30c309 Bug 1364009 - Don't allow comments/spaces between signs,numbers,and n in an+b syntax for nth-child; r=dbaron
In the an+b syntax, this continues to allow comments and spaces like so:
` an + b `. It does not allow `a n+b`, or `- an+b` or `+ an+b` (and the
same for the `an-b` form). Similarly, it does not allow `- b` or `+ b`.

Additionally, it *does* allow `+/*comment*/n+b` or `-/*comment*/n+b`,
but not `+ n+b` or `-n+b`. This is specced; in this one case we
parse two tokens but do not allow whitespace in between.

MozReview-Commit-ID: INzFGeMPeK7

--HG--
extra : rebase_source : ca5bcf4034759823f79b9a925dc72998d8f0218b
2017-06-01 15:54:14 -07:00
Mats Palmgren
fd41a201a0 Bug 1265001 part 2 - Add some tests with uppercase N in An+B. 2016-04-19 22:12:16 +02:00