Fix a selector parsing bug.

This commit is contained in:
Natalie Weizenbaum 2016-10-23 17:17:14 -07:00
parent aec39904bc
commit 9edb2bb447

View File

@ -209,7 +209,10 @@ abstract class StylesheetParser extends Parser {
var midBuffer = new StringBuffer(); var midBuffer = new StringBuffer();
midBuffer.write(rawText(whitespace)); midBuffer.write(rawText(whitespace));
if (!scanner.scanChar($colon)) return nameBuffer; if (!scanner.scanChar($colon)) {
if (midBuffer.isNotEmpty) nameBuffer.writeCharCode($space);
return nameBuffer;
}
midBuffer.writeCharCode($colon); midBuffer.writeCharCode($colon);
// Parse custom properties as declarations no matter what. // Parse custom properties as declarations no matter what.