-
Notifications
You must be signed in to change notification settings - Fork 33
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
support constant() and env() #48
Comments
Related to MoOx/reduce-css-calc#34 |
How to deal with ? |
Is there a spec for |
|
does disabling postcss-calc work? I am trying to find a fix |
FYI: I wrote a simple workaround in a comment in MoOx/reduce-css-calc#34 |
+1 |
Please update the dependence of reduce-css-calc~ |
Should be fixed in latest release. |
this produces same error. could we probably update post-css-calc to handle "width/height" also? |
@demosglok Why would we? I don't see this in any of the specifications, and it doesn't work in any of the browsers I've tested. |
works fine in chrome. and in mobile browsers. i'll retest |
where is the reference for this syntax: height: calc(width*56.25) according to this, its not supported: also note that you must have spaces around operators inside calc |
ok, i retested everywhere. seems not working, though one laptop with latest chrome worked well for mobile mode (devtools->check mobile icon) so not relevant for now, seems |
Hey there,
in my build setup (optimize-css-assets-webpack-plugin using cssnano) I had to disable postcss-calc because it was killing any
calc()
that useconstant()
andenv()
(see Designing Websites for iPhone X). Note how the100%
turned into1
:Input
Output
I tried producing a minimal test case with only postcss-calc, but all I got was:
The text was updated successfully, but these errors were encountered: