Allow protocol relative URLs in CssLink Transformer

This commit allows the use of "protcol relative URLs" (i.e. URLs without
scheme, starting with `//`), often used to serve resources automatically
from https or http with third party domains.

This syntax is allowed by RFC 3986.

Issue: SPR-12632
This commit is contained in:
Brian Clozel
2015-01-20 15:10:54 +01:00
parent 0c8d07fcff
commit bb5da15e1c
3 changed files with 8 additions and 3 deletions

View File

@@ -1,2 +1,3 @@
@import url("http://example.org/fonts/css");
body { background: url("file:///home/spring/image.png") }
body { background: url("file:///home/spring/image.png") }
figure { background: url("//example.org/style.css")}