jianlinwei / cssmin

Automatically exported from code.google.com/p/cssmin
0 stars 0 forks source link

URL prefixing not working properly #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
V: @version     3.0.1

BUG:

background: #aaaaaa url(images/aaaaaa_40x100.png;

$return=CssMin::minify($css, array(), array(
        "UrlPrefix" => array( "BaseUrl" => BASEURL )
));

Result is: background: #aaaaaa url(images/aaaaaa_40x100.png;

Should be: background: #aaaaaa url(www.path/to/image/aaaaaa_40x100.png;

WORKAROUND: 
change source css
background: #aaaaaa url(www.path/to/image/aaaaaa_40x100.png;
to
background:url(www.path/to/image/aaaaaa_40x100.png  #aaaaaa;

Original issue reported on code.google.com by danijel....@gmail.com on 25 Apr 2012 at 12:16