Skip to content

Files

Latest commit

 

History

History
71 lines (47 loc) · 988 Bytes

selector-pseudo-element-no-unknown.md

File metadata and controls

71 lines (47 loc) · 988 Bytes

Pattern: Unknown pseudo-element selector

Issue: -

Description

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.

Examples

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 {}

Configuration

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

Given:

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

The following patterns are not considered violations:

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

Further Reading