Skip to content

Files

Latest commit

 

History

History
101 lines (70 loc) · 1.41 KB

selector-list-comma-newline-after.md

File metadata and controls

101 lines (70 loc) · 1.41 KB

Pattern: Malformed newline after , in selector list

Issue: -

Description

Require a newline or disallow whitespace after the commas of selector lists. End-of-line comments are allowed one space after the comma.

a, /* comment */
b { color: pink; }

Examples

"always"

There must always be a newline after the commas.

The following patterns are considered violations:

a, b { color: pink; }
a
, b { color: pink; }

The following patterns are not considered violations:

a,
b { color: pink; }
a
,
b { color: pink; }

"always-multi-line"

There must always be a newline after the commas in multi-line selector lists.

The following patterns are considered violations:

a
, b { color: pink; }

The following patterns are not considered violations:

a, b { color: pink; }
a,
b { color: pink; }
a
,
b { color: pink; }

"never-multi-line"

There must never be whitespace after the commas in multi-line selector lists.

The following patterns are considered violations:

a
, b { color: pink; }
a,
b { color: pink; }

The following patterns are not considered violations:

a,b { color: pink; }
a
,b { color: pink; }

Further Reading