Skip to content

Commit 44ab94c

Browse files
committed
[css-values-3] Specify clamping during serialization.
1 parent 447e791 commit 44ab94c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

css-values/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Ignored Vars: Cn+1, n
3030
spec: css-backgrounds-3; type: type; text: <position>
3131
spec: css21; type: property; text: border-collapse
3232
spec: css-color-4; type: value; text: currentcolor
33+
spec: css-cascade-4; type: at-rule; text: @import
3334
</pre>
3435
<style>
3536
code, small { white-space: nowrap }
@@ -1572,7 +1573,8 @@ Serialization</h4>
15721573
(Terms with a value of zero <strong>must</strong> be preserved in this summation.)
15731574

15741575
2. If the result is a single value,
1575-
serialize as that value,
1576+
clamp the value to the range allowed in the target context,
1577+
then serialize as that value,
15761578
discarding the ''calc()'' wrapper.
15771579

15781580
3. Otherwise, serialize as a ''calc()'' containing the summation,

0 commit comments

Comments
 (0)