Require a single space or disallow whitespace after the commas of selector lists.
a, b { color: pink; }
/** ↑
* The space after this comma */
命令行中的 --fix
选项可以自动修复此规则报告的所有问题。
string
: "always"|"never"|"always-single-line"|"never-single-line"
There must always be a single space after the commas.
以下模式被视为违规:
a,b { color: pink; }
a ,b { color: pink; }
以下模式不被视为违规:
a, b { color: pink; }
a , b { color: pink; }
There must never be whitespace after the commas.
以下模式被视为违规:
a, b { color: pink; }
a , b { color: pink; }
以下模式不被视为违规:
a,b { color: pink; }
a ,b { color: pink; }
There must always be a single space after the commas in single-line selector lists.
以下模式被视为违规:
a,b { color: pink; }
以下模式不被视为违规:
a
,b { color: pink; }
There must never be a single space after the commas in single-line selector lists.
以下模式被视为违规:
a, b { color: pink; }
以下模式不被视为违规:
a
, b { color: pink; }