Skip to content

Fix Parse error on custom property fallback#68

Merged
MoOx merged 1 commit intoMoOx:masterfrom
snowystinger:fix-calc-with-vars
Jan 8, 2021
Merged

Fix Parse error on custom property fallback#68
MoOx merged 1 commit intoMoOx:masterfrom
snowystinger:fix-calc-with-vars

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