Skip to content

Fix Parse error on custom property fallback #68

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

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

snowystinger
Copy link
Contributor

Closes: #50

Hey, took a stab at fixing this issue. Essentially, recognize var declarations, and don't drop calcs because they can be nested with fallbacks
calc(var(--popupHeight, var(--defaultHeight, calc(100% - 50px + 25px))) / 2)

@snowystinger
Copy link
Contributor Author

Just for a bit of background, I see this is in postcss-calc now, but unfortunately I have a project that can't upgrade yet. We can address it with patch, so this is really just a nice to have updated

@Semigradsky
Copy link
Collaborator

@MoOx it looks good for me. I can merge and publish new patch version if you don't have any objections.

@MoOx MoOx merged commit 0cd0b0b into MoOx:master Jan 8, 2021
@MoOx
Copy link
Owner

MoOx commented Jan 8, 2021

2.1.8 is out

@snowystinger snowystinger deleted the fix-calc-with-vars branch January 8, 2021 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse error on custom property fallback
3 participants