-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Constant values not supported #34
Comments
@darrellhanley could you provide your input? |
Hello there I have the same issue. Here is what my css files looks like. I hope this will help /* Vars */
@value size: 20px;
.icons {
& svg:nth-child(1) {
left: calc(size * 0);
}
} |
This function take a css value as an input, so it just cannot work with that atm. |
@Semigradsky The syntax is like this:
Those should be passed through as-is. |
So that's probably a postcss issue. cssnext does nothing about this constant (now env) function |
It's clearly a parsing issue. So please reopen over there (if not already opened or fixed). |
Looks like |
probably, but since iPhone X is out an everyone is going to adjust their website, it should be supported by postcss anyway, (which support non valid syntax like sass etc) |
I see that PostCSS is parsing previous code well. Not problems in |
Oh, I have reproduced this. |
What's the status on getting this into a release? |
Having the same problem with this: @value large from './mediaqueries.css';
@value spacing-large from './spacings.css';
.someSpacing {
@media large {
margin-bottom: calc(spacing-large * 3)
}
} resulting in:
Using |
Using Framework7 in Vuejs affected. See framework7io/framework7#2539 To reproduce use https://github.com/zoosky/framework7-template-split-vue-webpack.git
Background, see: |
Simple workaround: Change:
To:
|
@guylando Thanks, this works! 👍🏻 You should do a pull request with this change. :) |
|
iOS Safari 11 introduces constant values to account for the safe zone, which in browser is supported in calc. When a constant value is used in a calc with this plug in, the compiler fails with the following error:
The text was updated successfully, but these errors were encountered: