diff --git a/lib/src/parse/stylesheet.dart b/lib/src/parse/stylesheet.dart index a3534e58..c0e2556a 100644 --- a/lib/src/parse/stylesheet.dart +++ b/lib/src/parse/stylesheet.dart @@ -209,7 +209,10 @@ abstract class StylesheetParser extends Parser { var midBuffer = new StringBuffer(); 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); // Parse custom properties as declarations no matter what.