File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -5620,6 +5620,20 @@ Serializing alpha values</h3>
5620
5620
</p>
5621
5621
</div>
5622
5622
5623
+ Because <<alpha-value>> s which were specified outside the valid range
5624
+ are clamped at parse time, the specified value will be clamped.
5625
+ However, per [[css-values-4#calc-range]] , <<alpha-value>> s
5626
+ specified using calc() are not clamped when the specified form is serialized;
5627
+ but the computed values are clamped.
5628
+
5629
+ <div class="example" id="ex-alpha-clamp">
5630
+ <p> For example an alpha value which was specified directly as 120%
5631
+ would be serialized as the string "1".
5632
+ However, if it was specified as calc(2*60%)
5633
+ the specified value would be serialized as the string "calc(1.2)".
5634
+ </p>
5635
+ </div>
5636
+
5623
5637
5624
5638
<h3 id="serializing-sRGB-values">
5625
5639
Serializing sRGB values</h3>
@@ -5767,6 +5781,8 @@ Serializing sRGB values</h3>
5767
5781
and not the string "rgb(218.000, 165.000, 32.000)"</p>
5768
5782
</div>
5769
5783
5784
+
5785
+
5770
5786
<h3 id="serializing-lab-lch">
5771
5787
Serializing Lab and LCH values</h3>
5772
5788
You can’t perform that action at this time.
0 commit comments