-
-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New rule: function-opening-parenthesis-space #62
Comments
Should this be paired with Or should we assume that users would always want to enforce the same rules for opening and closing parentheses so combine them into |
Also, if we were to make that assumption, we could simplify other rules along the same lines --- e.g. |
I think
I don't think it a good idea. Enforcing something like But for |
Also: @MoOx you probably know this from your other postcss plugins, just want to verify that functions in CSS can have spaces between the keyword and the opening parenthesis? |
You mean is something like |
Oh sorry. You mean is |
For now it's not for var & calc. I need to double check if this works in browsers. |
|
So according to the spec it is supposed to work with whitespace between keyword and parenthesis? |
I don't think so. |
See http://www.w3.org/TR/css3-syntax/#rule-defs --- looks to me like there's no whitespace allowed between function name and With that in mind I'd propose maybe we change this rule to What do you think? |
Since we are a linter, we might want to not just yell on code quality "issue" but also on potential error. So maybe we can create a rule to prevent this kind of issue (space between keyword and parenthesis) ? |
OK, yeah. If PostCSS doesn't already throw a syntax error for that, we should, makes sense.
(In spec "function-token" = name + ( I think) |
It doesn't I just checked on cssnext playground.
why not :) |
Ok ... so just to clarify the plan after that discussion: we'll do away with this rule and create three:
Everybody good with that? |
lgtm |
One thing..did you mean:
Otherwise, the breakdown of rules LGTM :) |
Yep, thanks. I will change #1. |
Typical whitespace, probably.
The text was updated successfully, but these errors were encountered: