Skip to content

Commit

Permalink
Hopefully fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
tubalmartin committed Sep 19, 2014
1 parent ce9a074 commit a749662
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cssmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ private function preserve_old_IE_specific_matrix_definition($matches)

private function replace_keyframe_zero($matches)
{
return $matches[1] . preg_replace('/0(\{|,[^\{]+\{)/', '0%$1', $matches[2]) . $matches[3];
return $matches[1] . preg_replace('/0(\{|,[^\)\{]+\{)/', '0%$1', $matches[2]) . $matches[3];
}

private function rgb_to_hex($matches)
Expand Down
1 change: 1 addition & 0 deletions tests/mine/keyframes.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
}
@-webkit-keyframes test4{
0% { transform: rotate3d(0,0,1,30deg); }
100% { transform: rotate3d(0,0,1,10deg); }
}
2 changes: 1 addition & 1 deletion tests/mine/keyframes.css.min
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@keyframes anim{0%{opacity:0}100%{opacity:1}}@-o-keyframes anim{0%{opacity:0}100%{opacity:1}}@keyframes test{0%,100%{opacity:0}}@keyframes test2{0%,100%{opacity:0}}@keyframes test3{50%{opacity:50}100%,0%{opacity:0}}@-webkit-keyframes test4{0%{transform:rotate3d(0,0,1,30deg)}}
@keyframes anim{0%{opacity:0}100%{opacity:1}}@-o-keyframes anim{0%{opacity:0}100%{opacity:1}}@keyframes test{0%,100%{opacity:0}}@keyframes test2{0%,100%{opacity:0}}@keyframes test3{50%{opacity:50}100%,0%{opacity:0}}@-webkit-keyframes test4{0%{transform:rotate3d(0,0,1,30deg)}100%{transform:rotate3d(0,0,1,10deg)}}

0 comments on commit a749662

Please sign in to comment.