mirror of
https://github.com/mrclay/minify.git
synced 2025-08-31 09:31:48 +02:00
Merge pull request #563 from mrclay/561_empty_url
URI rewriter passes through empty URLs
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
@import url("/css/foo.css"); /* abs, should not alter */
|
||||
@import url(/css2/foo.css); /* abs, should not alter */
|
||||
@import url(foo:bar); /* scheme, should not alter */
|
||||
@import url(); /* empty, should not alter */
|
||||
foo {clip-path:url(#c1)} /* inline clip path, should not alter */
|
||||
foo {clip-path:url(/_test_files/css_uriRewriter/foo.svg#c1)}
|
||||
foo {mask: url(#c1)} /* should not alter */
|
||||
@@ -17,5 +18,6 @@ foo {background:url('http://foo.com/css/foo.css');} /* scheme, should not alter
|
||||
foo {background:url("//foo.com/css/foo.css");} /* protocol relative, should not alter */
|
||||
foo {background:url(foo:bar);} /* scheme, should not alter */
|
||||
foo {background:url("/_test_files/css_uriRewriter/foo bar.jpg");}
|
||||
foo {background:url("");} /* empty, should not alter */
|
||||
@import url('/_test_files/css_uriRewriter/foo bar.css');
|
||||
@import "/_test_files/css_uriRewriter/foo bar.css";
|
||||
|
@@ -8,6 +8,7 @@
|
||||
@import url("/css/foo.css"); /* abs, should not alter */
|
||||
@import url(/css2/foo.css); /* abs, should not alter */
|
||||
@import url(foo:bar); /* scheme, should not alter */
|
||||
@import url(); /* empty, should not alter */
|
||||
foo {clip-path:url(#c1)} /* inline clip path, should not alter */
|
||||
foo {clip-path:url(http://cnd.com/A/B/foo.svg#c1)}
|
||||
foo {mask: url(#c1)} /* should not alter */
|
||||
@@ -17,5 +18,6 @@ foo {background:url('http://foo.com/css/foo.css');} /* scheme, should not alter
|
||||
foo {background:url("//foo.com/css/foo.css");} /* protocol relative, should not alter */
|
||||
foo {background:url(foo:bar);} /* scheme, should not alter */
|
||||
foo {background:url("http://cnd.com/A/B/foo bar.jpg");}
|
||||
foo {background:url("");} /* empty, should not alter */
|
||||
@import url('http://cnd.com/A/B/foo bar.css');
|
||||
@import "http://cnd.com/A/B/foo bar.css";
|
||||
|
@@ -8,6 +8,7 @@
|
||||
@import url("/css/foo.css"); /* abs, should not alter */
|
||||
@import url(/css2/foo.css); /* abs, should not alter */
|
||||
@import url(foo:bar); /* scheme, should not alter */
|
||||
@import url(); /* empty, should not alter */
|
||||
foo {clip-path:url(#c1)} /* inline clip path, should not alter */
|
||||
foo {clip-path:url(//cnd.com/A/B/foo.svg#c1)}
|
||||
foo {mask: url(#c1)} /* should not alter */
|
||||
@@ -17,5 +18,6 @@ foo {background:url('http://foo.com/css/foo.css');} /* scheme, should not alter
|
||||
foo {background:url("//foo.com/css/foo.css");} /* protocol relative, should not alter */
|
||||
foo {background:url(foo:bar);} /* scheme, should not alter */
|
||||
foo {background:url("//cnd.com/A/B/foo bar.jpg");}
|
||||
foo {background:url("");} /* empty, should not alter */
|
||||
@import url('//cnd.com/A/B/foo bar.css');
|
||||
@import "//cnd.com/A/B/foo bar.css";
|
||||
|
@@ -8,6 +8,7 @@
|
||||
@import url("/css/foo.css"); /* abs, should not alter */
|
||||
@import url(/css2/foo.css); /* abs, should not alter */
|
||||
@import url(foo:bar); /* scheme, should not alter */
|
||||
@import url(); /* empty, should not alter */
|
||||
foo {clip-path:url(#c1)} /* inline clip path, should not alter */
|
||||
foo {clip-path:url(foo.svg#c1)}
|
||||
foo {mask: url( #c1 )} /* should not alter */
|
||||
@@ -17,5 +18,6 @@ foo {background:url('http://foo.com/css/foo.css');} /* scheme, should not alter
|
||||
foo {background:url("//foo.com/css/foo.css");} /* protocol relative, should not alter */
|
||||
foo {background:url(foo:bar);} /* scheme, should not alter */
|
||||
foo {background:url("foo bar.jpg");}
|
||||
foo {background:url("");} /* empty, should not alter */
|
||||
@import url('foo bar.css');
|
||||
@import "foo bar.css";
|
||||
|
Reference in New Issue
Block a user