Skip to content

Commit 1b78f44

Browse files
committed
[css-values-4] Clarify that clamping happens to 'top-level calculations'. #8158
1 parent e51bbc0 commit 1b78f44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

css-values-4/Overview.bs

+4-1
Original file line numberDiff line numberDiff line change
@@ -4641,7 +4641,7 @@ Range Checking</h3>
46414641

46424642
Parse-time range-checking of values is not performed within [=math functions=],
46434643
and therefore out-of-range values do not cause the declaration to become invalid.
4644-
However, the value resulting from an expression
4644+
However, the value resulting from a [=top-level calculation=]
46454645
must be clamped to the range allowed in the target context.
46464646
Clamping is performed on <a>computed values</a> to the extent possible,
46474647
and also on <a>used values</a>
@@ -5189,6 +5189,9 @@ Recent Changes</h3>
51895189
(<a href="https://github.com/w3c/csswg-drafts/issues/8532">Issue 8532</a>)
51905190
<li>Clarified that fully omitted ''mix()'' arguments are valid.
51915191
(<a href="https://github.com/w3c/csswg-drafts/issues/8556">Issue 8556</a>)
5192+
<li>Clarified that range clamping happens specifically to [=top-level calculations=]
5193+
(rather than the unclear term "expressions").
5194+
(<a href="https://github.com/w3c/csswg-drafts/issues/8158">Issue 8158</a>)
51925195
</ul>
51935196

51945197
Substantial changes since <a href="https://www.w3.org/TR/2021/WD-css-values-4-20211016/">16 October 2021 WD</a>:

0 commit comments

Comments
 (0)