Permalink
Browse files

Fixed complicated @media convertation. I.e.

@media screen and (-webkit-min-device-pixel-ratio:0)
was converted to 
@media screen and -webkit-min-device-pixel-ratio0

git-svn-id: https://csstidy.svn.sourceforge.net/svnroot/csstidy@134 9036ea34-7506-0410-aa24-c7077ae73b50
  • Loading branch information...
1 parent 33fb237 commit 0537dfbbd1571741bdd5a8cdb898e13c97047888 sunnybear committed Apr 1, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 trunk/class.csstidy.php
View
@@ -636,6 +636,11 @@ function parse($string) {
{
$this->at .= $this->_unicode($string,$i);
}
+ // fix for complicated media, i.e @media screen and (-webkit-min-device-pixel-ratio:0)
+ elseif(in_array($string{$i}, array('(', ')', ':')))
+ {
+ $this->at .= $string{$i};
+ }
}
else
{

0 comments on commit 0537dfb

Please sign in to comment.