Skip to content

noUnknownFunction (since v1.8.0)

Diagnostic Category: lint/nursery/noUnknownFunction


Disallow unknown CSS value functions.

This rule ignores double-dashed custom functions, e.g. --custom-function().

Data sources of known CSS value functions are:

a { transform: unknown(1); }
code-block.css:1:16 lint/nursery/noUnknownFunction ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   Unexpected unknown function: unknown
  > 1 │ a { transform: unknown(1); }
    2 │ 
   Use a known function instead.
   See MDN web docs for more details.
a { transform: scale(1); }