mirror of
https://github.com/sass/sass.git
synced 2024-09-21 18:47:25 +00:00
[First-Class Calc] Be more consistent meta.type-of() return value
This commit is contained in:
parent
c118446e33
commit
3574f2f153
@ -17,6 +17,9 @@
|
||||
* Return calculations from `meta.calc-args()` as calculations, not unquoted
|
||||
strings.
|
||||
|
||||
* Return an unquoted string with value `"calculation"` from `meta.type-of()` for
|
||||
calculations, rather than a quoted string with value `"calc"`.
|
||||
|
||||
* Simplify `calc(a + -b)` to `calc(a - b)`.
|
||||
|
||||
* Fix some broken formatting.
|
||||
|
@ -649,7 +649,8 @@ Add the following clause to the [`meta.type-of()`] function and the top-level
|
||||
|
||||
[`meta.type-of()`]: ../spec/built-in-modules/meta.md#type-of
|
||||
|
||||
* If `$value` is a calculation, return `"calc"`.
|
||||
* If `$value` is a calculation, return an unquoted string with value
|
||||
`"calculation"`.
|
||||
|
||||
### `meta.calc-name()`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user