mirror of
https://github.com/sass/sass.git
synced 2024-09-21 02:27:30 +00:00
[First-Class Calc] Allow calcs in potentially slash-separated numbers
This commit is contained in:
parent
2e2421d113
commit
f8632463c8
@ -30,6 +30,9 @@
|
||||
|
||||
* Explicitly specify how calculations are parsed in plain-CSS mode.
|
||||
|
||||
* Allow numbers returned by simplifying calculations to create potentially
|
||||
slash-separated numbers.
|
||||
|
||||
* Fix some broken formatting.
|
||||
|
||||
* Remove TODOs about extra simplification.
|
||||
|
@ -17,6 +17,7 @@
|
||||
* [Possibly-Compatible Units](#possibly-compatible-units)
|
||||
* [Possibly-Compatible Numbers](#possibly-compatible-numbers)
|
||||
* [Special Number](#special-number)
|
||||
* [Potentially Slash-Separated Number](#potentially-slash-separated-number)
|
||||
* [Syntax](#syntax)
|
||||
* [`SpecialFunctionExpression`](#specialfunctionexpression)
|
||||
* [`CalcExpression`](#calcexpression)
|
||||
@ -319,6 +320,13 @@ A *special number* is either:
|
||||
In addition, replace all references to special number strings with references to special
|
||||
numbers.
|
||||
|
||||
### Potentially Slash-Separated Number
|
||||
|
||||
Add `CalcExpression`s, `ClampExpression`s, `CssMinMax`es to the list of operands
|
||||
of the `/` operator that can create a [potentially slash-separated number].
|
||||
|
||||
[potentially slash-separated number]: ../spec/types/number.md#potentially-slash-separated-number
|
||||
|
||||
## Syntax
|
||||
|
||||
### `SpecialFunctionExpression`
|
||||
|
Loading…
Reference in New Issue
Block a user