Skip to content

Commit e659d47

Browse files
committed
[css-values-4] Add syntax for new math funcs.
1 parent bda9b47 commit e659d47

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

css-values-4/Overview.bs

+14
Original file line numberDiff line numberDiff line change
@@ -2799,6 +2799,16 @@ Syntax</h3>
27992799
<<min()>> = min( <<calc-sum>># )
28002800
<<max()>> = max( <<calc-sum>># )
28012801
<<clamp()>> = clamp( <<calc-sum>>#{3} )
2802+
<<sin()>> = sin( <<calc-sum>> )
2803+
<<cos()>> = cos( <<calc-sum>> )
2804+
<<tan()>> = tan( <<calc-sum>> )
2805+
<<asin()>> = asin( <<calc-sum>> )
2806+
<<acos()>> = acos( <<calc-sum>> )
2807+
<<atan()>> = atan( <<calc-sum>> )
2808+
<<atan2()>> = atan2( <<calc-sum>>, <<calc-sum>> )
2809+
<<pow()>> = pow( <<calc-sum>>, <<calc-sum>> )
2810+
<<sqrt()>> = sqrt( <<calc-sum>> )
2811+
<<hypot()>> = hypot( <<calc-sum>># )
28022812
<dfn>&lt;calc-sum></dfn> = <<calc-product>> [ [ '+' | '-' ] <<calc-product>> ]*
28032813
<dfn>&lt;calc-product></dfn> = <<calc-value>> [ [ '*' | '/' ] <<calc-value>> ]*
28042814
<dfn>&lt;calc-value></dfn> = <<number>> | <<dimension>> | <<percentage>> | ( <<calc-sum>> )
@@ -2808,6 +2818,10 @@ Syntax</h3>
28082818
is required on both sides of the <css>+</css> and <css>-</css> operators.
28092819
(The <css>*</css> and <css>/</css> operaters can be used without white space around them.)
28102820

2821+
Several of the math functions above have additional constraints
2822+
on what their <<calc-sum>> arguments can contain.
2823+
Check the definitions of the individual functions for details.
2824+
28112825
UAs must support [=math function=] expressions of at least 20 terms,
28122826
where each <code>NUMBER</code>, <code>DIMENSION</code>, or <code>PERCENTAGE</code> is a term.
28132827
If a [=math function=] contains more than the supported number of terms,

0 commit comments

Comments
 (0)