@@ -6763,14 +6763,35 @@ Serializing other colors</h3>
6763
6763
6764
6764
The serialized form of ''currentColor'' is the string "currentcolor".
6765
6765
6766
+ <!-- Big Text: Opacity Serial
6767
+
6768
+ ███▌ ████▌ ███▌ ███▌ ████ █████▌ █ ▐▌ ███▌ █████▌ ████▌ ████ ███▌ █▌
6769
+ █▌ █▌ █▌ █▌ ▐█ ▐█ █▌ █▌ ▐▌ █▌ ▐▌ █ █▌ █▌ █▌ █▌ █▌ ▐▌ ▐█ ▐█ █▌
6770
+ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐▌ █▌ █ ▐▌ █▌ █▌ █▌ █▌ ▐▌ █▌ █▌ █▌
6771
+ █▌ █▌ ████▌ █▌ █▌ █▌ ▐▌ █▌ ▐▌█ ███▌ ████ ████▌ ▐▌ █▌ █▌ █▌
6772
+ █▌ █▌ █▌ █████▌ █▌ ▐▌ █▌ █▌ █▌ █▌ █▌▐█ ▐▌ █████▌ █▌
6773
+ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█ ▐▌ █▌ █▌ █▌
6774
+ ███▌ █▌ █▌ █▌ ███▌ ████ █▌ █▌ ███▌ █████▌ █▌ █▌ ████ █▌ █▌ █████
6775
+ -->
6766
6776
6767
6777
<h2 id='serializing-opacity-values'>
6768
6778
Serializing <<opacity-value>></h2>
6769
6779
6770
6780
This applies to the ''opacity'' property.
6771
6781
6772
- The specified given opacity value is serialized
6773
- as a <<number>> , not a <<percentage>> .
6782
+ If the specified value for an opacity value
6783
+ matches a literal <<percentage-token>>
6784
+ (i.e. does not use ''calc()'' )
6785
+ it should be serialized as the equivalent
6786
+ <<number>> (0% maps to 0, 100% maps to 1) value.
6787
+ value.
6788
+ Otherwise, the specified value
6789
+ for an opacity value
6790
+ should serialize using
6791
+ the standard serialization for the grammar.
6792
+
6793
+ <!-- The specified given opacity value is serialized
6794
+ as a <<number>> , not a <<percentage>> . -->
6774
6795
6775
6796
This <<number>> value is expressed in base ten,
6776
6797
with the "." character as decimal separator.
0 commit comments