@@ -3488,11 +3488,12 @@ Simplification</h4>
34883488<h3 id='calc-computed-value'>
34893489Computed Value</h3>
34903490
3491- The computed value of a ''calc()'' function is the expression
3492- with all components computed.
3493- The computed value of a ''min()'' , ''max()'' , or ''clamp()'' function
3494- is the comma-separated list of expressions,
3495- with each expression having all its component computed.
3491+ The [=computed value=] of a [=math function=]
3492+ is its [=calculation tree=] [=simplified=] ,
3493+ using all the information available at [=computed-value=] time.
3494+ (Such as the ''em'' to ''px'' ratio,
3495+ how to resolve percentages in some properties,
3496+ etc.)
34963497
34973498 Where percentages are not resolved at computed-value time,
34983499 they are not resolved in [=math functions=] ,
@@ -3502,23 +3503,6 @@ Computed Value</h3>
35023503 (e.g. <a href="https://www.w3.org/TR/CSS21/visudet.html#the-height-property">the <css>height</css> property</a> ),
35033504 they apply whenever a [=math function=] contains percentages.
35043505
3505- <div class=note>
3506- Note: The serialization rules do not preserve the structure of the computation,
3507- so implementations can simplify the expressions
3508- further than what is required here
3509- when storing the values internally;
3510- in particular, all [=calculation=] expressions can be reduced
3511- to a sum of a <<number>> , a <<percentage>> , and some <<dimension>> s,
3512- eliminating all multiplication or division,
3513- and combining terms with identical units.
3514-
3515- At this time, all units can be absolutized
3516- to a single unit per type at computed-value time,
3517- so at that point the [=calculation=] can be reduced
3518- to just a <<number>> , a <<percentage>> , and a single absolute <<dimension>> of the appropriate type,
3519- per expression.
3520- </div>
3521-
35223506 <div class='example'>
35233507 For example,
35243508 whereas 'font-size' computes percentage values at <a>computed value</a> time
@@ -3530,11 +3514,6 @@ Computed Value</h3>
35303514 whereas 'font-size' will compute such expressions directly into a length.
35313515 </div>
35323516
3533- <!-- http://lists.w3.org/Archives/Public/www-style/2010May/0001.html
3534- This has notes on how we should handle things when calc() is extended to
3535- handle unit mult/div. Related to this is <unit> mod<unit> , which can return
3536- 0 and thus introduce computed-time division-by-zero. -->
3537-
35383517 Given the complexities of width and height calculations on table cells and table elements,
35393518 math expressions mixing both percentages and lengths for widths and heights on
35403519 table columns, table column groups, table rows, table row groups, and table cells
0 commit comments