..
2022-03-10 10:36:59 +01:00
2022-03-10 10:36:59 +01:00

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