Skip to content

Files

Latest commit

 

History

History
105 lines (73 loc) · 1.05 KB

selector-pseudo-element-case.md

File metadata and controls

105 lines (73 loc) · 1.05 KB

Pattern: Inconsistent pseudo-element selector case

Issue: -

Description

Specify lowercase or uppercase for pseudo-element selectors.

Examples

"lower"

The following patterns are considered violations:

a:Before {}
a:bEfOrE {}
a:BEFORE {}
a::Before {}
a::bEfOrE {}
a::BEFORE {}
input::-MOZ-PLACEHOLDER {}

The following patterns are not considered violations:

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

"upper"

The following patterns are considered violations:

a:Before {}
a:bEfOrE {}
a:BEFORE {}
a::Before {}
a::bEfOrE {}
a::before {}
input::-moz-placeholder {}

The following patterns are not considered violations:

a:BEFORE {}
a::BEFORE {}
input::-MOZ-PLACEHOLDER {}

Further Reading