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
Adds built-in clamp() and hypot() #906
Conversation
* Adds clamp(), div(), and hypot(). * Parses -0 as a double.
lib/src/functions/math.dart
Outdated
var unit1 = "${min.hasUnits ? "has units" : "is unitless"}"; | ||
var unit2 = "${min.hasUnits ? "is unitless" : "has units"}"; | ||
throw SassScriptException( | ||
"$arg1 $unit1 but $arg2 $unit2. Arguments must all have units or all be unitless."); |
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 also include the names of the arguments in question here—it may not be obvious from context.
Also, this is a long line (the formatter won't break strings for you).
Same below.
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.
Done.
1197452
to
28b577a
Compare
See sass/sass-spec#1500