Fix "2n of .foo" parsing.

This commit is contained in:
Natalie Weizenbaum 2016-10-28 15:36:30 -07:00
parent 9ec89f6944
commit 6f6eb79dae

View File

@ -284,9 +284,9 @@ class SelectorParser extends Parser {
selector = _selectorList();
} else if (unvendored == "nth-child" || unvendored == "nth-last-child") {
argument = rawText(_aNPlusB);
if (scanWhitespace()) {
if (isWhitespace(scanner.peekChar(-1))) {
expectIdentifier("of", ignoreCase: true);
argument += " of";
argument += "of";
whitespace();
selector = _selectorList();