function-no-unknown
Disallow unknown functions.
a { transform: unknown(1); }
/** ↑
* Functions like this */
This rule considers functions defined in the CSS Specifications to be known.
This rule ignores double-dashed custom functions, e.g. --custom-function()
.
Options
true
The following patterns are considered problems:
a { transform: unknown(1); }
The following patterns are not considered problems:
a { transform: scale(1); }
a { transform: --custom-function(1); }
Optional secondary options
ignoreFunctions: ["/regex/", /regex/, "non-regex"]
Ignore the specified functions.
For example, with true
.
Given:
["theme", "/^foo-/"]
The following patterns are not considered problems:
a { transform: theme(1); }
a { transform: foo-func(1); }