1
0
mirror of https://github.com/mrclay/minify.git synced 2025-09-02 02:12:40 +02:00

URI rewriter passes through empty URLs

Fixes #561
This commit is contained in:
Steve Clay
2017-01-18 18:48:15 -05:00
parent d1786045b2
commit 12b9096b23
5 changed files with 13 additions and 0 deletions

View File

@@ -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";