Require a single space or disallow whitespace on the inside of the parentheses within pseudo-class selectors.
input:not( [type="submit"] ) {}
/** ↑ ↑
* The space inside these two parentheses */
命令行中的 --fix
选项可以自动修复此规则报告的所有问题。
string
: "always"|"never"
There must always be a single space inside the parentheses.
以下模式被视为违规:
input:not([type="submit"]) {}
input:not([type="submit"] ) {}
以下模式不被视为违规:
input:not( [type="submit"] ) {}
There must never be whitespace on the inside the parentheses.
以下模式被视为违规:
input:not( [type="submit"] ) {}
input:not( [type="submit"]) {}
以下模式不被视为违规:
input:not([type="submit"]) {}