Skip to content

Commit 5849ec3

Browse files
committed
[css-values-4][editorial] Slightly reword the automatic clamping text to make it clearer that it's often implicit/UA-defined.
1 parent 6200ae8 commit 5849ec3

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

css-values-4/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5162,16 +5162,17 @@ Range Checking</h3>
51625162
(Clamping is not performed on <a>specified values</a>.)
51635163

51645164
Note: This requires all contexts accepting ''calc()''
5165-
to define their allowable values as a closed (not open) interval.
5165+
to define any range restrictions as closed (not open) interval endpoints:
5166+
"greater than or equal to 0px", not "greater than 0px" or "positive lengths".
51665167

5167-
Note: By definition,
5168-
±∞ are outside the allowed range for any property,
5169-
and will clamp to the minimum/maximum value allowed.
5168+
Note: While CSS intentionally leaves numeric precision/range UA-defined,
5169+
extremely large values (including, notably, ±∞)
5170+
will clamp to the minimum/maximum value allowed.
51705171
Even properties that can explicitly represent infinity as a keyword value,
51715172
such as 'animation-iteration-count',
51725173
will end up clamping ±∞,
51735174
as [=math functions=] can't resolve to keyword values;
5174-
the <em>numeric</em> part of the property's syntax still has a minimum/maximum value.
5175+
the <em>numeric</em> part of the property's syntax still has an implicit minimum/maximum value.
51755176

51765177
Additionally, if a [=math function=] that resolves to <<number>>
51775178
is used somewhere that only accepts <<integer>>,

0 commit comments

Comments
 (0)