Skip to content

Commit

Permalink
Merge pull request #11 from mlocati/fix-fontface-natxet
Browse files Browse the repository at this point in the history
Fix parsing @font-face
  • Loading branch information
natxet committed May 21, 2015
2 parents 692edd8 + faba90e commit f076e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CssMin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4933,7 +4933,7 @@ public function parse($index, $char, $previousChar, $state)
{
$this->parser->pushState("T_AT_FONT_FACE::PREPARE");
$this->parser->clearBuffer();
return $index + 10;
return $index + 10 - 1;
}
// Start of @font-face declarations
elseif ($char === "{" && $state === "T_AT_FONT_FACE::PREPARE")
Expand Down

0 comments on commit f076e41

Please sign in to comment.