1 # function-url-no-scheme-relative
3 Disallow scheme-relative urls.
6 a { background-image: url('//www.google.com/file.jpg'); }
8 * This scheme-relative url */
11 A [scheme-relative url](https://url.spec.whatwg.org/#syntax-url-scheme-relative) is a url that begins with `//` followed by a host.
13 This rule ignores url arguments that are variables (`$sass`, `@less`, `--custom-property`).
19 The following patterns are considered violations:
23 background: url("//www.google.com/file.jpg");
27 The following patterns are *not* considered violations:
31 background: url("../file.jpg");
37 background: url("http://www.google.com/file.jpg");
43 background: url("/path/to/file.jpg");