Skip to content

Commit 3ef49d3

Browse files
author
Awjin Ahn
authored
Inputs to atan2() must all have units or all be unitless. (sass#2803)
1 parent 4b7c383 commit 3ef49d3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

accepted/more-math-functions.changes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Draft 2.1
2+
3+
* atan2()'s arguments must all have compatible units, or all be unitless.
4+
15
## Draft 2
26

37
* Variables

accepted/more-math-functions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# More Math Functions: Draft 2
1+
# More Math Functions: Draft 2.1
22

33
*[(Issue)](https://github.com/sass/sass/issues/851)*
44

@@ -347,6 +347,7 @@ atan2($y, $x)
347347
```
348348

349349
* If `$y` and `$x` are not compatible, throw an error.
350+
* If `$y` has units and `$x` does not, or vice-versa, throw an error.
350351
* If the inputs match one of the following edge cases, return the provided
351352
number. Otherwise, return the [2-argument arctangent][] of `$y` and `$x`, as a
352353
number in `deg`.

0 commit comments

Comments
 (0)