1.6 KiB
1.6 KiB
function-whitespace-after
Require or disallow whitespace after functions.
transform: translate(1, 1) scale(3); }
a { /** ↑
* This space */
This rule does not check for space immediately after )
if the very next character is ,
, )
,
/
or }
, allowing some of the patterns
exemplified below.
The fix
option can automatically fix all of the problems reported by this
rule.
Options
string
: "always"|"never"
"always"
There must always be whitespace after the function.
The following patterns are considered violations:
transform: translate(1, 1)scale(3); } a {
The following patterns are not considered violations:
transform: translate(1, 1) scale(3); } a {
transform: translate(1, 1) scale(3); } a {
a {transform:
translate(1, 1)
scale(3);
}
/* notice the two closing parentheses without a space between */
top: calc(1 * (1 + 3)); } a {
/* notice the ), with no space after the closing parenthesis */
padding: calc(1 * 2px), calc(2 * 5px); } a {
"never"
There must never be whitespace after the function.
The following patterns are considered violations:
transform: translate(1, 1) scale(3); } a {
The following patterns are not considered violations:
transform: translate(1, 1)scale(3); } a {