コンテンツにスキップ

noUnknownPseudoClass

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

Diagnostic Category: lint/nursery/noUnknownPseudoClass

Since: v1.8.0

Sources:

Disallow unknown pseudo-class selectors.

For details on known pseudo-class, see the MDN web docs

This rule ignores vendor-prefixed pseudo-class selectors.

a:unknown {}
code-block.css:1:3 lint/nursery/noUnknownPseudoClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected unknown pseudo-class unknown

> 1 │ a:unknown {}
^^^^^^^
2 │

See MDN web docs for more details.

a:UNKNOWN {}
code-block.css:1:3 lint/nursery/noUnknownPseudoClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected unknown pseudo-class UNKNOWN

> 1 │ a:UNKNOWN {}
^^^^^^^
2 │

See MDN web docs for more details.

a:hoverr {}
code-block.css:1:3 lint/nursery/noUnknownPseudoClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected unknown pseudo-class hoverr

> 1 │ a:hoverr {}
^^^^^^
2 │

See MDN web docs for more details.

a:hover {}
a:focus {}
:not(p) {}
input:-moz-placeholder {}