Skip to content

Files

Latest commit

 

History

History
53 lines (33 loc) · 1023 Bytes

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

File metadata and controls

53 lines (33 loc) · 1023 Bytes

Pattern: Malformed whitespace for parentheses in pseudo-class selector

Issue: -

Description

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

Examples

"always"

There must always be a single space inside the parentheses.

The following patterns are considered violations:

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

The following patterns are not considered violations:

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

"never"

There must never be whitespace on the inside the parentheses.

The following patterns are considered violations:

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

The following patterns are not considered violations:

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

Further Reading