Commit f43045df authored by Byron Jones's avatar Byron Jones

Bug 1100368: css concatenation breaks data: urls

r=dylan,a=glob
parent 2e000dae
......@@ -539,7 +539,9 @@ sub _css_url_rewrite {
# rewrite relative urls as the unified stylesheet lives in a different
# directory from the source
$url =~ s/(^['"]|['"]$)//g;
return $url if substr($url, 0, 1) eq '/';
if (substr($url, 0, 1) eq '/' || substr($url, 0, 5) eq 'data:') {
return 'url(' . $url . ')';
}
return 'url(../../' . dirname($source) . '/' . $url . ')';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment