Skip to content

Files

Latest commit

 

History

History
89 lines (61 loc) · 943 Bytes

selector-pseudo-class-case.md

File metadata and controls

89 lines (61 loc) · 943 Bytes

Pattern: Inconsistent pseudo-class selector case

Issue: -

Description

Specify lowercase or uppercase for pseudo-class selectors.

Examples

"lower"

The following patterns are considered violations:

a:Hover {}
a:hOvEr {}
a:HOVER {}
:ROOT {}
:-MS-INPUT-PLACEHOLDER {}

The following patterns are not considered violations:

a:hover {}
:root {}
:-ms-input-placeholder {}

"upper"

The following patterns are considered violations:

a:Hover {}
a:hOvEr {}
a:hover {}
:root {}
:-ms-input-placeholder {}

The following patterns are not considered violations:

a:HOVER {}
:ROOT {}
:-MS-INPUT-PLACEHOLDER {}

Further Reading