Skip to content

Commit a840824

Browse files
committed
[css-values-4][editorial] Rewrite math function types to a dt
1 parent cc71452 commit a840824

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

css-values-4/Overview.bs

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3920,20 +3920,33 @@ Type Checking</h3>
39203920
[=Math functions=] themselves have [=CSSNumericValue/types=],
39213921
according to their contained [=calculations=]:
39223922

3923-
* The [=CSSNumericValue/type=] of a ''calc()'' or ''abs()'' expression
3924-
is the [=CSSNumericValue/type=] of its contained [=calculation=].
3925-
* The [=CSSNumericValue/type=] of a
3926-
''min()'', ''max()'', ''clamp()'', ''hypot()'', ''round()'', ''mod()'', or ''rem()'' expression
3927-
is the result of [=add two types|adding the types=]
3923+
: ''calc()''
3924+
: ''abs()''
3925+
:: The [=CSSNumericValue/type=] of its contained [=calculation=].
3926+
3927+
: ''min()''
3928+
: ''max()''
3929+
: ''clamp()''
3930+
: ''hypot()''
3931+
: ''round()''
3932+
: ''mod()''
3933+
: ''rem()''
3934+
:: The result of [=add two types|adding the types=]
39283935
of its comma-separated [=calculations=].
3929-
* The [=CSSNumericValue/type=] of a ''sign()'' expression
3930-
is «[ ]» (empty map).
3931-
* The [=CSSNumericValue/type=] of a ''sin()'', ''cos()'', or ''tan()'' expression
3932-
is «[ ]» (empty map).
3933-
* The [=CSSNumericValue/type=] of an ''asin()'', ''acos()'', ''atan()'', or ''atan2()'' expression
3934-
is «[ ]» (empty map).
3935-
* The [=CSSNumericValue/type=] of a ''pow()'', ''sqrt()'', ''log()'', or ''exp()'' expression
3936-
is «[ ]» (empty map).
3936+
3937+
: ''sign()''
3938+
: ''sin()''
3939+
: ''cos()''
3940+
: ''tan()''
3941+
: ''asin()''
3942+
: ''acos()''
3943+
: ''atan()''
3944+
: ''atan2()''
3945+
: ''pow()''
3946+
: ''sqrt()''
3947+
: ''log()''
3948+
: ''exp()''
3949+
:: «[ ]» (empty map).
39373950

39383951
For each of the above,
39393952
if the [=CSSNumericValue/type=] is failure,

0 commit comments

Comments
 (0)