Skip to content

subzey/function-url-local-root

Repository files navigation

tradingview/function-url-local-root

Allow or disallow URLs from local root.

Options:

"always", "never"

always

/* Okay: */
background: url(/foo/bar);
background-image: url('/foo/bar');
content: url("/foo/bar");

/* Error: */
background: url(foo/bar);
background-image: url('foo/bar');
content: url("foo/bar");

never

/* Okay: */
background: url(foo/bar);
background-image: url('foo/bar');
content: url("foo/bar");


/* Never: */
background: url(/foo/bar);
background-image: url('/foo/bar');
content: url("/foo/bar");

About

function-url-local-root rule for Stylelint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published