Skip to content

Commit 38b702a

Browse files
committed
[css-values-4] Fix <calc-constant> ref to be <calc-keyword>, and allow for keywords to resolve to non-numeric values
1 parent b2b8ffd commit 38b702a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

css-values-4/Overview.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4181,8 +4181,8 @@ Type Checking</h3>
41814181
:: the [=CSSNumericValue/type=] is «[ "resolution" → 1 ]»
41824182
: <<flex>>
41834183
:: the [=CSSNumericValue/type=] is «[ "flex" → 1 ]»
4184-
: <<calc-constant>>
4185-
:: the [=CSSNumericValue/type=] is «[ ]» (empty map)
4184+
: <<calc-keyword>>
4185+
:: the [=CSSNumericValue/type=] is as defined by the keyword
41864186
: <<percentage>>
41874187
::
41884188
If, in the context in which the [=math function=]
@@ -4529,8 +4529,9 @@ Simplification</h4>
45294529
do so,
45304530
and return the value.
45314531

4532-
3. If |root| is a <<calc-constant>>,
4533-
return its numeric value.
4532+
3. If |root| is a <<calc-keyword>> that can be resolved,
4533+
return what it resolves to,
4534+
[=simplified=].
45344535

45354536
4. Otherwise, return |root|.
45364537

0 commit comments

Comments
 (0)