Skip to content

Commit c334e35

Browse files
committed
[css-color] Consistent serialization, fix #7892
1 parent a39ccfa commit c334e35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

css-color-4/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5755,7 +5755,7 @@ Serializing Oklab and Oklch values</h3>
57555755
<div class="example" id="ex-oklch-alpha">
57565756
<p>The serialized value of</p>
57575757
<pre class="lang-css"><span class="swatch" style="--color: rgba(60%, 26.67%, 66.67%, 0.7)"></span> oklch(53.85% 0.1725 320.67 / 70%)</pre>
5758-
<p>is the string "oklch(53.85% 0.1725 320.67 / 0.7)"</p>
5758+
<p>is the string "oklch(0.5385 0.1725 320.67 / 0.7)"</p>
57595759
</div>
57605760

57615761
<h3 id="serializing-color-function-values">

css-color-5/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ is the same as that specified in
24682468
The result of this color mixture
24692469
<pre>color-mix(in lch, peru 40%, palegoldenrod)</pre>
24702470
is serialized as the string <span class="swatch" style="--color: rgb(87.416% 76.036% 47.637%)"></span>
2471-
"lch(79.7256% 40.448 84.771)"
2471+
"lch(79.7256 40.448 84.771)"
24722472
while the result of
24732473
<pre>color-mix(in srgb, peru 40%, palegoldenrod)</pre>
24742474
is serialized as the string <span class="swatch" style="--color: rgb(88.16% 75.45% 49.88%)"></span>
@@ -2500,7 +2500,7 @@ is the same as that specified in
25002500
<pre>lch(from peru calc(l * 0.8) calc(c * 0.7) calc(h + 180)) </pre>
25012501
is the string
25022502
<span class="swatch" style="--color: rgb(3.12% 50.352% 68.894%)"></span>
2503-
"lch(49.80224% 37.80819 243.6803)"
2503+
"lch(49.80224 37.80819 243.6803)"
25042504

25052505
</div>
25062506

0 commit comments

Comments
 (0)