[First-Class Calc] Allow calcs in potentially slash-separated numbers

This commit is contained in:
Natalie Weizenbaum 2021-08-18 16:45:43 -07:00
parent 2e2421d113
commit f8632463c8
2 changed files with 11 additions and 0 deletions

View File

@ -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.

View File

@ -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`