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
Stop simplifying calculations in supports #1653
Conversation
lib/src/visitor/async_evaluate.dart
Outdated
"${condition.isCustomProperty ? '' : ' '}" | ||
"${await _evaluateToCss(condition.value)})"; | ||
_inSupportsDeclaration = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should restore the previous value instead of setting it to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you mark this as a release version?
lib/src/value/calculation.dart
Outdated
|
||
/// Like [operate], but with the internal-only [inMinMax] parameter. | ||
/// | ||
/// If [inMinMax] is `true`, this allows unitless numbers to be added and | ||
/// subtracted with numbers with units, for backwards-compatibility with the | ||
/// old global `min()` and `max()` functions. | ||
/// | ||
/// If [inSupportsDeclaration] is `true`, no simplification will be done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd call this parameter simplify
, since that more directly represents what it does rather than what the context is.
Also add changelog entry
Fixes #1652.
See sass/sass-spec#1781