Skip to content

Files

Latest commit

 

History

History
93 lines (63 loc) · 1.16 KB

selector-attribute-brackets-space-inside.md

File metadata and controls

93 lines (63 loc) · 1.16 KB

Pattern: Malformed whitespace in [] for attribute selector

Issue: -

Description

Require a single space or disallow whitespace on the inside of the brackets within attribute selectors.

Examples

"always"

There must always be a single space inside the brackets.

The following patterns are considered violations:

[target] {}
[ target] {}
[target ] {}
[target=_blank] {}
[ target=_blank] {}
[target=_blank ] {}

The following patterns are not considered violations:

[ target ] {}
[ target=_blank ] {}

"never"

There must never be whitespace on the inside the brackets.

The following patterns are considered violations:

[ target] {}
[target ] {}
[ target ] {}
[ target=_blank] {}
[target=_blank ] {}
[ target=_blank ] {}

The following patterns are not considered violations:

[target] {}
[target=_blank] {}

Further Reading