@@ -5533,18 +5533,28 @@ Serializing sRGB values</h3>
55335533 * [=named colors=]
55345534 * [=system colors=]
55355535 * <a href="#deprecated-system-colors">deprecated-colors</a>
5536+ * ''transparent''
55365537
5537- <!-- are all system colors assumed to be sRGB? -->
5538+ <!-- are all system colors assumed to be sRGB?
5539+ https://github.com/w3c/csswg-drafts/issues/8312
5540+ -->
55385541
55395542 is derived from the [=specified value=] .
55405543
55415544 When serializing the value of a property
5542- which was set by the author to a CSS named color,
5545+ which was set by the author to a CSS [=named color=] ,
5546+ a [=system color=] ,
5547+ a <a href="#deprecated-system-colors">deprecated-color</a> ,
5548+ or ''transparent''
55435549 therefore, for the [=specified value=] ,
5544- the (all lowercase) named value is retained.
5550+ the <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>
5551+ keyword value is retained.
55455552 For the computed and used value,
55465553 the corresponding sRGB value is used.
55475554
5555+ Thus, the serialized specified value of ''transparent'' is the string "transparent",
5556+ while the serialized computed value of ''transparent'' is the string "rgba(0, 0, 0, 0)".
5557+
55485558 For all other sRGB values,
55495559 the specified, computed and used value
55505560 is the corresponding sRGB value.
@@ -5924,16 +5934,13 @@ Serializing values of the ''color()'' function</h3>
59245934Serializing other colors</h3>
59255935
59265936 This applies to
5927- ''transparent'' and
59285937 ''currentcolor'' .
59295938
5930- The serialized form of these values
5939+ The serialized form of this value
59315940 is derived from the [=computed value=]
59325941 and uses <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>
59335942 letters for the color name.
59345943
5935- The serialized form of ''transparent'' is the string "rgba(0, 0, 0, 0)".
5936-
59375944 The serialized form of ''currentColor'' is the string "currentcolor".
59385945
59395946<!--
0 commit comments