Permalink
Browse files

Fixed bug with resolving second negative background-position value.

git-svn-id: https://csstidy.svn.sourceforge.net/svnroot/csstidy@122 9036ea34-7506-0410-aa24-c7077ae73b50
  • Loading branch information...
1 parent fcbfba4 commit 3ec22c55151da0398b58e2ff1b4a4620b19d2385 sunnybear committed Sep 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 trunk/class.csstidy_optimise.php
@@ -757,7 +757,7 @@ function dissolve_short_bg($str_value)
{
$return['background-size'] .= substr($str_value[$i][$j],1,-1).',';
}
- elseif(in_array($str_value[$i][$j],$pos,true) || is_numeric($str_value[$i][$j]{0}) || $str_value[$i][$j]{0} === null)
+ elseif(in_array($str_value[$i][$j],$pos,true) || is_numeric($str_value[$i][$j]{0}) || $str_value[$i][$j]{0} === null || $str_value[$i][$j]{0} === '-')
{
$return['background-position'] .= $str_value[$i][$j];
if(!$have['pos']) $return['background-position'] .= ' '; else $return['background-position'].= ',';

0 comments on commit 3ec22c5

Please sign in to comment.