You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| README.md | 5 years ago | |
| index.js | 5 years ago | |
README.md
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.
This rule ignores vendor-prefixed pseudo-element selectors.
Options
true
The following patterns are considered violations:
a::pseudo {}
a::PSEUDO {}
a::element {}
The following patterns are not considered violations:
a:before {}
a::before {}
::selection {}
input::-moz-placeholder {}
Optional secondary options
ignorePseudoElements: ["/regex/", "string"]
Given:
["/^my-/", "pseudo-element"]
The following patterns are not considered violations:
a::pseudo-element {}
a::my-pseudo {}
a::my-other-pseudo {}