Skip to content

Commit 30e6f08

Browse files
committed
Don’t allow at-rule names to be functions
Makes it possible to parse most CSS3 media queries (MyIntervals#75), although not understand them.
1 parent 9d0e1f0 commit 30e6f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function parseListItem(CSSList $oList, $bIsRoot = false) {
141141

142142
private function parseAtRule() {
143143
$this->consume('@');
144-
$sIdentifier = $this->parseIdentifier();
144+
$sIdentifier = $this->parseIdentifier(false);
145145
$iIdentifierLineNum = $this->iLineNo;
146146
$this->consumeWhiteSpace();
147147
if ($sIdentifier === 'import') {

0 commit comments

Comments
 (0)