arbk / cssmin

CssMin - A (simple) css minifier with benefits. (exported from Google Code)
http://code.google.com/p/cssmin/
1 stars 1 forks source link

URL prefixing not working properly #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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