-
Notifications
You must be signed in to change notification settings - Fork 32
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
Problem with removed parenthesis from calc before var #113
Labels
Comments
Is it the browser bug? Why parenthesis needed around of var()? |
I believe it's not a browser bug. Parenthesis are needed because of math: |
Probably related #115 |
Any news on this huge bug, it's very blocking... |
It's harder to fix than it seems, because the current parser does not distinguish:
from
|
ludofischer
added a commit
that referenced
this issue
Jan 10, 2022
ludofischer
added a commit
that referenced
this issue
Jan 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original issue cssnano/cssnano#645
This valid css
becomes invalid after cssnano compilation, because cssnano removes parenthesis around of var()
Chrome and Firefox don't respect the var() without parenthesis around it and so the code is not working as expected.
Test case: https://jsfiddle.net/z7bsn1r8/4/
The text was updated successfully, but these errors were encountered: