Skip to content

Commit 72d894d

Browse files
authored
[css-color-5] fix typo (w3c#10086)
* [css-color-5] fix typo * [css-color-5] fix incorrect syntax
1 parent 4429f5f commit 72d894d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css-color-5/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ if the destination color space is capable of representing them.
961961

962962
<pre highlight=css>
963963
--vivid-yellow: <span class="swatch oog" style="--color: color(display-p3 1 1 0)"></span> color(display-p3 1 1 0);
964-
--paler-yellow: <span class="swatch" style="--color: rgb(100% 100% 15.37%)"></span> srgb(from var(--vivid-yellow) r g calc(b + 50%));
964+
--paler-yellow: <span class="swatch" style="--color: rgb(100% 100% 15.37%)"></span> color(from var(--vivid-yellow) srgb r g calc(b + 0.5));
965965
</pre>
966966

967967
Here --vivid-yellow, once converted to sRGB,
@@ -979,7 +979,7 @@ alpha channels <em>are</em> clamped to the reference range.
979979
results in an alpha in the result of 1, not 1.4.
980980

981981
<pre highlight=css>
982-
--tan: <span class="swatch" style="--color: rgb(80.93% 70% 55.27% / 70%)"></span> oklch(78% 0.06 75) / 0.7;
982+
--tan: <span class="swatch" style="--color: rgb(80.93% 70% 55.27% / 70%)"></span> oklch(78% 0.06 75 / 0.7);
983983
--deeper-tan: <span class="swatch" style="--color: rgb(80.93% 70% 55.27%)"></span> oklch(from var(--tan) l c h / calc(alpha * 2));
984984
</pre>
985985
</div>

0 commit comments

Comments
 (0)