Skip to content

Commit f076e41

Browse files
committed
Merge pull request #11 from mlocati/fix-fontface-natxet
Fix parsing @font-face
2 parents 692edd8 + faba90e commit f076e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CssMin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4933,7 +4933,7 @@ public function parse($index, $char, $previousChar, $state)
49334933
{
49344934
$this->parser->pushState("T_AT_FONT_FACE::PREPARE");
49354935
$this->parser->clearBuffer();
4936-
return $index + 10;
4936+
return $index + 10 - 1;
49374937
}
49384938
// Start of @font-face declarations
49394939
elseif ($char === "{" && $state === "T_AT_FONT_FACE::PREPARE")

0 commit comments

Comments
 (0)