Skip to content

Files

Latest commit

 

History

History
117 lines (79 loc) · 1.77 KB

value-list-comma-space-before.md

File metadata and controls

117 lines (79 loc) · 1.77 KB

Pattern: Malformed whitespace before , in value list

Issue: -

Description

Require a single space or disallow whitespace before the commas of value lists.

Examples

"always"

There must always be a single space before 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; }
a { background-size: 0 ,
      0; }

"never"

There must never be whitespace before 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; }
a { background-size: 0,
      0; }

"always-single-line"

There must always be a single space before the commas in single-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-single-line"

There must never be whitespace before the commas in single-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