Skip to content
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

Merged
merged 4 commits into from Mar 30, 2022
Merged

Stop simplifying calculations in supports #1653

merged 4 commits into from Mar 30, 2022

Conversation

jathak
Copy link
Member

@jathak jathak commented Mar 15, 2022

@jathak jathak requested a review from nex3 March 15, 2022 00:33
"${condition.isCustomProperty ? '' : ' '}"
"${await _evaluateToCss(condition.value)})";
_inSupportsDeclaration = false;
Copy link
Contributor

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

Copy link
Contributor

@nex3 nex3 left a 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?


/// 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.
Copy link
Contributor

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.

@jathak jathak merged commit 6652001 into main Mar 30, 2022
@jathak jathak deleted the supports-calc branch March 30, 2022 22:14
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.

Don't simplify calculations within supports declarations
3 participants