From f8632463c841029a0f9bc46bb6fedb7adb7ec19f Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 18 Aug 2021 16:45:43 -0700 Subject: [PATCH] [First-Class Calc] Allow calcs in potentially slash-separated numbers --- accepted/first-class-calc.changes.md | 3 +++ accepted/first-class-calc.md | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/accepted/first-class-calc.changes.md b/accepted/first-class-calc.changes.md index bf409d31..e6bcbe73 100644 --- a/accepted/first-class-calc.changes.md +++ b/accepted/first-class-calc.changes.md @@ -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. diff --git a/accepted/first-class-calc.md b/accepted/first-class-calc.md index 3b89f169..348777d2 100644 --- a/accepted/first-class-calc.md +++ b/accepted/first-class-calc.md @@ -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`