1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 08:17:34 -04:00
notes/node_modules/stylelint/lib/rules/selector-pseudo-class-no-unknown/README.md
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

915 B

selector-pseudo-class-no-unknown

Disallow unknown pseudo-class selectors.

    a:hover {}
/**    ↑
 * This pseudo-class selector */

This rule considers pseudo-class selectors defined in the CSS Specifications, up to and including Editor's Drafts, to be known.

All vendor-prefixed pseudo-class selectors are ignored.

Options

true

The following patterns are considered warnings:

a:unknown {}
a:UNKNOWN {}
a:hoverr {}

The following patterns are not considered warnings:

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

Optional secondary options

ignorePseudoClasses: ["/regex/", "string"]

Given:

["/^my-/", "pseudo-class"]

The following patterns are not considered warnings:

a:pseudo-class {}
a:my-pseudo {}
a:my-other-pseudo {}