From f8751442ca48443dcdf7a9293fbf263939833c9b Mon Sep 17 00:00:00 2001 From: Ivailo Hristov Date: Wed, 18 Mar 2020 16:18:18 +0200 Subject: [PATCH] Preserve casing for CSS var names --- lib/Sabberworm/CSS/Rule/Rule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sabberworm/CSS/Rule/Rule.php b/lib/Sabberworm/CSS/Rule/Rule.php index 3fa031bd..2afce572 100644 --- a/lib/Sabberworm/CSS/Rule/Rule.php +++ b/lib/Sabberworm/CSS/Rule/Rule.php @@ -32,7 +32,7 @@ public function __construct($sRule, $iLineNo = 0) { public static function parse(ParserState $oParserState) { $aComments = $oParserState->consumeWhiteSpace(); - $oRule = new Rule($oParserState->parseIdentifier(), $oParserState->currentLine()); + $oRule = new Rule($oParserState->parseIdentifier(!$oParserState->comes("--")), $oParserState->currentLine()); $oRule->setComments($aComments); $oRule->addComments($oParserState->consumeWhiteSpace()); $oParserState->consume(':');