@@ -6723,6 +6723,36 @@ Serializing other colors</h3>
67236723
67246724 The serialized form of ''currentColor'' is the string "currentcolor".
67256725
6726+
6727+ <h2 id='serializing-opacity-values'>
6728+ Serializing <<opacity-value>></h2>
6729+
6730+ This applies to the ''opacity'' property.
6731+
6732+ The specified given opacity value is serialized
6733+ as a <<number>> , not a <<percentage>> .
6734+
6735+ This <<number>> value is expressed in base ten,
6736+ with the "." character as decimal separator.
6737+ The leading zero must not be omitted.
6738+ Trailing zeroes must be omitted.
6739+
6740+ Opacity values outside the range [0,1]
6741+ are preserved, without clamping, in the serialized specified value.
6742+
6743+ The precision with which opacity values are retained,
6744+ and thus the number of decimal places in the serialized value,
6745+ is not defined in this specification,
6746+ but must at least be sufficient
6747+ to round-trip integer percentage values.
6748+ Thus, the serialized value must contain
6749+ at least two decimal places
6750+ (unless trailing zeroes have been removed).
6751+ Values must be
6752+ <a href="https://drafts.csswg.org/css-values-4/#combine-integers">rounded
6753+ towards +∞</a> , not truncated.
6754+
6755+
67266756<!--
67276757 ██████ ████████ ██ ██ ██ ████████ ████████ ██ ██ ██ ████████ ██████
67286758██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
0 commit comments