Skip to content

Commit efa7aab

Browse files
author
Chris Lilley
committed
[css-color-5] Clarify serialization for srgb-linear, hsl(), hwb() & xyz. Fix w3c#6860
1 parent b7b01ad commit efa7aab

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

css-color-5/Overview.bs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,15 +2361,15 @@ is the same as that specified in
23612361
</tr>
23622362
<tr>
23632363
<td>srgb-linear</td>
2364-
<td>color(srgb r g b)</td>
2364+
<td>color(srgb r g b) <a href="#fn1">¹</a></td>
23652365
</tr>
23662366
<tr>
23672367
<td>hsl</td>
2368-
<td>hsl(h s l)</td>
2368+
<td>hsl(h s l) <a href="#fn2">²</a></td>
23692369
</tr>
23702370
<tr>
23712371
<td>hwb</td>
2372-
<td>hwb(h w b)</td>
2372+
<td>hwb(h w b) <a href="#fn3">³</a></td>
23732373
</tr>
23742374
<tr>
23752375
<td>xyz-d65</td>
@@ -2381,7 +2381,7 @@ is the same as that specified in
23812381
</tr>
23822382
<tr>
23832383
<td>xyz</td>
2384-
<td>color(xyz-d65 x y z)</td>
2384+
<td>color(xyz-d65 x y z) <a href="#fn4">⁴</a></td>
23852385
</tr>
23862386
<tr>
23872387
<td>lab</td>
@@ -2401,6 +2401,17 @@ is the same as that specified in
24012401
</tr>
24022402
</table>
24032403

2404+
<dl>
2405+
<dt id="fn1">¹</dt>
2406+
<dd>After conversion back to gamma-encoded form</dd>
2407+
<dt id="fn2">²</dt>
2408+
<dd>''hsl()'' will then serialize as ''rgb()'' or ''rgba()''</dd>
2409+
<dt id="fn3">³</dt>
2410+
<dd>''hwb()'' will then serialize as ''rgb()'' or ''rgba()''</dd>
2411+
<dt id="fn4"></dt>
2412+
<dd>Because ''xyz'' is just an alias for ''xyz-d65''</dd>
2413+
</dl>
2414+
24042415
<div class="example">
24052416
The result of this color mixture
24062417
<pre>color-mix(in lch, peru 40%, palegoldenrod)</pre>

0 commit comments

Comments
 (0)