@@ -1059,13 +1059,18 @@ and there shall be no thousands separator.
1059
1059
(depending on whether the alpha is exactly 1, or not),
1060
1060
with lowercase letters for the function name.
1061
1061
1062
+ During serialization,
1063
+ any [=missing=] values
1064
+ are converted to 0.
1065
+
1062
1066
For compatibility, the sRGB component values
1063
1067
are serialized in <<number>> form, not <<percentage>> ).
1064
1068
Also for compatibility,
1065
1069
the component values are serialized in base 10,
1066
1070
with a range of [0-255] , regardless of
1067
1071
the bit depth with which they are stored.
1068
1072
1073
+
1069
1074
<a href="#serializing-alpha-values">As noted earlier</a> ,
1070
1075
unitary alpha values are not explicitly serialized.
1071
1076
Also, for compatibility, if the alpha is exactly 1,
@@ -1075,7 +1080,6 @@ and there shall be no thousands separator.
1075
1080
with an explicit alpha value.
1076
1081
1077
1082
1078
-
1079
1083
For compatibility,
1080
1084
the legacy form with comma separators is used;
1081
1085
exactly one ASCII space follows each comma.
@@ -1084,6 +1088,7 @@ and there shall be no thousands separator.
1084
1088
from the alpha value.
1085
1089
1086
1090
1091
+
1087
1092
<div class="example" id="ex-rgb-ser-int-rgba">
1088
1093
<p> For example, the serialized value of</p>
1089
1094
<pre class="lang-css"><span class="swatch" style="--color: rgba(29, 164, 192, 0.95)"></span> rgb(29 164 192 / 95%)</pre>
0 commit comments