Sha256: 603a85ca95634560d1272232f07834eba2b73a5df15c1d67cffa8f2424f0882f
Contents?: true
Size: 929 Bytes
Versions: 24
Compression:
Stored size: 929 Bytes
Contents
# function-url-no-scheme-relative Disallow scheme-relative urls. <!-- prettier-ignore --> ```css a { background-image: url('//www.google.com/file.jpg'); } /** ↑ * This scheme-relative url */ ``` A [scheme-relative url](https://url.spec.whatwg.org/#syntax-url-scheme-relative) is a url that begins with `//` followed by a host. This rule ignores url arguments that are variables (`$sass`, `@less`, `--custom-property`). ## Options ### `true` The following patterns are considered violations: <!-- prettier-ignore --> ```css a { background: url("//www.google.com/file.jpg"); } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { background: url("../file.jpg"); } ``` <!-- prettier-ignore --> ```css a { background: url("http://www.google.com/file.jpg"); } ``` <!-- prettier-ignore --> ```css a { background: url("/path/to/file.jpg"); } ```
Version data entries
24 entries across 24 versions & 1 rubygems