mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +00:00
Fix behavior of to accept two arguments.
This commit is contained in:
parent
8c62d02d97
commit
0c955567f1
@ -1,5 +1,9 @@
|
||||
## Draft 1.2
|
||||
|
||||
* Fix behavior of `log` to accept two arguments.
|
||||
|
||||
## Draft 1.2
|
||||
|
||||
* Fix behavior of `round` to ensure it is backwards-compatible with the existing
|
||||
global Sass function.
|
||||
|
||||
|
@ -260,7 +260,7 @@ This algorithm takes a calculation `calc` and returns a number or a calculation.
|
||||
> otherwise calculations' arguments must match the expected number.
|
||||
|
||||
* If `calc`'s name is `"sin"`, `"cos"`, `"tan"`, `"asin"`, `"acos"`, `"atan"`,
|
||||
`"sqrt"`, `"abs"`, `"log"`, or `"round"` and `arguments` contains exactly a
|
||||
`"sqrt"`, `"abs"`, or `"round"` and `arguments` contains exactly a
|
||||
single number with [known units], return the result of passing that number to
|
||||
the function in [`sass:math`] whose name matches `calc`'s.
|
||||
|
||||
@ -271,6 +271,10 @@ This algorithm takes a calculation `calc` and returns a number or a calculation.
|
||||
`number` with [known units], return the result of calling `math.pow(math.$e,
|
||||
number)`.
|
||||
|
||||
* If `calc` name is `"log"`:
|
||||
* If `arguments` contains exactly a single number `number` without units, return the result of calling `math.log(number)`.
|
||||
* If `arguments` contains exactly two numbers `number` and `base` without units, return the result of calling `math.log(number.value) / math.log(base.value)`.
|
||||
|
||||
* If `calc`'s name is `"sign"` and `arguments` contains exactly a single number
|
||||
`number` with [known units]:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user