Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.13 KB

selector-pseudo-class-parentheses-space-inside.md

File metadata and controls

61 lines (39 loc) · 1.13 KB

Pattern: Incorrect spacing inside pseudo-class parentheses

Issue: -

Description

Require a single space or disallow whitespace on the inside of the parentheses within pseudo-class selectors.

input:not( [type="submit"] ) {}
/**      ↑                 ↑
 * The space inside these two parentheses */

Examples

string: "always"|"never"

"always"

There must always be a single space inside the parentheses.

The following patterns are considered problems:

input:not([type="submit"]) {}
input:not([type="submit"] ) {}

The following patterns are not considered problems:

input:not( [type="submit"] ) {}

"never"

There must never be whitespace on the inside the parentheses.

The following patterns are considered problems:

input:not( [type="submit"] ) {}
input:not( [type="submit"]) {}

The following patterns are not considered problems:

input:not([type="submit"]) {}

Further Reading