Skip to main content

selector-pseudo-element-case

Specify lowercase or uppercase for pseudo-element selectors.

  a::before {}/**  โ†‘ * This pseudo-element selector */

The fix option can automatically fix all of the problems reported by this rule.

Options#

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