Require a single space or disallow whitespace after the commas of value lists.
a { background-size: 0, 0; }
/** ↑
* The space after these commas */
命令行中的 --fix
选项可以自动修复此规则报告的大多数问题。
string
: "always"|"never"|"always-single-line"|"never-single-line"
There must always be a single space after the commas.
以下模式被视为违规:
a { background-size: 0,0; }
a { background-size: 0
, 0; }
以下模式不被视为违规:
a { background-size: 0, 0; }
a { background-size: 0
, 0; }
There must never be whitespace after the commas.
以下模式被视为违规:
a { background-size: 0, 0; }
a { background-size: 0 ,
0; }
以下模式不被视为违规:
a { background-size: 0,0; }
a { background-size: 0
,0; }
There must always be a single space after the commas in single-line value lists.
以下模式被视为违规:
a { background-size: 0,0; }
以下模式不被视为违规:
a { background-size: 0, 0; }
a { background-size: 0
, 0; }
a { background-size: 0
,0; }
There must never be whitespace after the commas in single-line value lists.
以下模式被视为违规:
a { background-size: 0, 0; }
以下模式不被视为违规:
a { background-size: 0,0; }
a { background-size: 0
,0; }
a { background-size: 0
, 0; }