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

selector-pseudo-element-no-unknown

Disallow unknown pseudo-element selectors.

    a::before {}
/**    ↑
 * This pseudo-element selector */

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

All vendor-prefixed pseudo-element selectors are ignored.

Options

true

The following patterns are considered warnings:

a::pseudo {}
a::PSEUDO {}
a::element {}

The following patterns are not considered warnings:

a:before {}
a::before {}
::selection {}
input::-moz-placeholder {}

Optional secondary options

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

Given:

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

The following patterns are not considered warnings:

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