Am trying to add the rule for the background-image URL should start with images
background-image: url(ssasimages/dummy.svg);
Please find below the screenshot FYR.
It's not giving error, please someone help me to find what did wrong.
Am trying to add the rule for the background-image URL should start with images
background-image: url(ssasimages/dummy.svg);
Please find below the screenshot FYR.
It's not giving error, please someone help me to find what did wrong.
The rule unfortunately doesn't apply in your case.
It will only validate the url scheme, and not the whole url. If your url started with data:
, or http:
then the rule would be applied.
From the docs for the function-url-scheme-whitelist rule:
A URL scheme consists of alphanumeric, +, -, and . characters. It can appear at the start of a URL and is followed by :.
To get your desired functionality in stylelint you'd need to write a plugin. You could use the source of the function-url-scheme-whitelist rule as a good starting point.