コンテンツにスキップ

noUnknownFunction

このコンテンツはまだ日本語訳がありません。

Diagnostic Category: lint/correctness/noUnknownFunction

Since: v1.8.0

Sources:

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/correctness/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); }