Skip to content

Files

Latest commit

 

History

History
87 lines (58 loc) · 1.36 KB

value-list-comma-newline-after.md

File metadata and controls

87 lines (58 loc) · 1.36 KB

Pattern: Malformed newline after , in value list

Issue: -

Description

Require a newline or disallow whitespace after the commas of value lists.

Examples

"always"

There must always be a newline after the commas.

The following patterns are considered violations:

a { background-size: 0,0; }
a { background-size: 0
      , 0; }

The following patterns are not considered violations:

a { background-size: 0,
      0; }

"always-multi-line"

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

The following patterns are considered violations:

a { background-size: 0
    , 0; }

The following patterns are not considered violations:

a { background-size: 0, 0; }
a { background-size: 0,0; }
a { background-size: 0,
      0; }

"never-multi-line"

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

The following patterns are considered violations:

a { background-size: 0
      , 0; }

The following patterns are not considered violations:

a { background-size: 0,0; }
a { background-size: 0, 0; }
a { background-size: 0
      ,0; }

Further Reading