-
Notifications
You must be signed in to change notification settings - Fork 89
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
Update tests for strict function unit deprecations #1830
Conversation
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 also add a test that would assert the behavior of a number having multiple numerators and denominators?
spec/core_functions/color/mix.hrx
Outdated
@@ -349,6 +391,16 @@ Error: argument `$weight` of `mix($color1, $color2, $weight: 50%)` must be a num | |||
a {b: mix(red, blue, -0.001)} | |||
|
|||
<===> error/bounds/too_low/error | |||
DEPRECATION WARNING: $weight: Passing a number without unit % (-0.001) is deprecated. |
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.
The deprecation warning was already part of the tests above, is testing both warning + error intentional? If not, then I think it's better to add units so we don't emit both
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.
Yeah, good catch
See #1813
See sass/sass#3374
[skip dart-sass]