#value-list-comma-space-before

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

在值列表的逗号之前要求有一个空格或禁止有空白。

a { background-size: 0 ,0; }
/**                    ↑
 * The space before these commas */

#Options

string: "always"|"never"|"always-single-line"|"never-single-line"

#"always"

There must always be a single space before the commas.

在逗号之前必须有一个空格。

The following patterns are considered warnings:

以下模式被认为是个警告:

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

The following patterns are not considered warnings:

以下模式正常:

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

#"never"

There must never be whitespace before the commas.

在逗号之前禁止有空白。

The following patterns are considered warnings:

以下模式被认为是个警告:

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

The following patterns are not considered warnings:

以下模式正常:

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 warnings:

以下模式被认为是个警告:

a { background-size: 0,0; }

The following patterns are not considered warnings:

以下模式正常:

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 warnings:

以下模式被认为是个警告:

a { background-size: 0 ,0; }

The following patterns are not considered warnings:

以下模式正常:

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