Skip to content

Commit 8e94821

Browse files
committed
[css-values] Clarify that syntactic range-checking is not performed on calc() values. Clarify that the used value is what's clamped.
1 parent f8d3a98 commit 8e94821

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

css-values/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,8 +1521,10 @@ Computed Value</h4>
15211521
<h4 id='calc-range'>
15221522
Range Checking</h4>
15231523

1524-
The value resulting from an expression must be clamped to the
1525-
range allowed in the target context.
1524+
Parse-time range-checking of values is not performed within ''calc()'',
1525+
and therefore out-of-range values do not cause the declaration to become invalid.
1526+
However, the used value resulting from an expression
1527+
must be clamped to the range allowed in the target context.
15261528

15271529
Note: This requires all contexts accepting ''calc()''
15281530
to define their allowable values as a closed (not open) interval.

0 commit comments

Comments
 (0)