Skip to content

Latest commit

 

History

History
113 lines (79 loc) · 1.14 KB

selector-pseudo-element-case.md

File metadata and controls

113 lines (79 loc) · 1.14 KB

Pattern: Malformed case for pseudo-element

Issue: -

Description

Specify lowercase or uppercase for pseudo-element selectors.

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

Examples

string: "lower"|"upper"

"lower"

The following patterns are considered problems:

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

The following patterns are not considered problems:

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

"upper"

The following patterns are considered problems:

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

The following patterns are not considered problems:

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

Further Reading