Skip to content

Commit f5d03ba

Browse files
committed
[css-colors-4] serializing the other colors
1 parent b27224b commit f5d03ba

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

css-color-4/Overview.bs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,34 @@ This section updates and replaces that part of CSS Object Model, section
867867
the black ("k") color component value
868868
from the alpha value.
869869

870+
<h4 id="serializing-other-colors">Serializing other colors</h4>
871+
872+
This applies to [=system colors=],
873+
[=deprecated-colors=],
874+
''transparent'', and
875+
''currentcolor''.
876+
877+
The serialized form of these values
878+
is derived from the [=computed value=]
879+
and uses lowercase letters for the color name.
880+
881+
<div class="example" id="ex-system-serial">
882+
<p>The serialized form of the color</p>
883+
<pre class="lang-css"><span class="swatch" style="--color: VisitedText"></span> VisitedText</pre>
884+
<p>is the string "visitedtext"</p>
885+
</div>
886+
887+
<div class="example" id="ex-deprecated-serial">
888+
<p>The serialized form of the color</p>
889+
<pre class="lang-css"><span class="swatch" style="--color: ButtonFace"></span> ThreeDFace</pre>
890+
<p>is the string "threedface"</p>
891+
</div>
892+
893+
The serialized form of ''transparent'' is the string "transparent black".
894+
895+
The serialized form of ''currentColor'' is the string "currentcolor".
896+
897+
870898
<h2 id='numeric-srgb'>
871899
sRGB Colors</h2>
872900

0 commit comments

Comments
 (0)