-
Notifications
You must be signed in to change notification settings - Fork 62
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
Parenthesis missing when using variable with CSS functions (nested) #96
Comments
I hit this too, so I took a quick look. The issue seems to be this regex.
When it matches This sort of problem is really hard to solve well with regular expressions, sadly. The expression I am trying to parse is even worse:
|
@cuberoot There is a pull request in process of approval to solve this problem #97 :) let's hope @MadLittleMods approve it soon 🤞🏻 |
FYI, the fix from @juliovedovatto in #97 solves my more complicate case as well. Thanks! |
Fixed via #97 |
I'm facing problems with IE11 browser using css variables. So I decided to use this awesome lib to convert CSS variables to normal representation value, to make work in the browser.
But the css is broken after parsing it. It does not work in any browser.
After a time debugging, I noticed a wrong behavior.
Example:
Without
postcss-css-variables
Using
postcss-css-variables
It seems the string replacement is not working as expected.
I'm using
0.12.0
version.The text was updated successfully, but these errors were encountered: