File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff 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'>
871899sRGB Colors</h2>
872900
You can’t perform that action at this time.
0 commit comments