Skip to content

Commit

Permalink
Fix @Keyframes double quotes
Browse files Browse the repository at this point in the history
When minifying, the library adds unnecessary double quotes to the `@keyframes` rule.

This commit remove them.
  • Loading branch information
woecifaun committed Sep 20, 2015
1 parent 4026975 commit 7ee51a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CssMin.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public function __toString()
}
elseif ($class === "CssAtKeyframesStartToken")
{
$r[] = $indent . "@keyframes \"" . $token->Name . "\"";
$r[] = $indent . "@keyframes " . $token->Name;
$r[] = $this->indent . $indent . "{";
$level++;
}
Expand Down Expand Up @@ -1840,7 +1840,7 @@ public function __toString()
}
elseif ($class === "CssAtKeyframesStartToken")
{
$r[] = $indent . "@keyframes \"" . $token->Name . "\" {";
$r[] = $indent . "@keyframes " . $token->Name . " {";
$level++;
}
elseif ($class === "CssAtMediaStartToken")
Expand Down Expand Up @@ -4467,7 +4467,7 @@ public function __toString()
{
return "@-moz-keyframes " . $this->Name . " {";
}
return "@" . $this->AtRuleName . " \"" . $this->Name . "\"{";
return "@" . $this->AtRuleName . " " . $this->Name . "{";
}
}

Expand Down

0 comments on commit 7ee51a1

Please sign in to comment.