Skip to content

Commit e3c6d7a

Browse files
committed
[css-color-4] Minimum 10bit sRGB in color(), w3c#5825
1 parent a48d31f commit e3c6d7a

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

css-color-4/Overview.bs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Foreground Color: the 'color' property</h2>
312312
em { color: <span class="swatch" style="--color: lime"></span>&nbsp;lime; } /* color keyword */
313313
em { color: <span class="swatch" style="--color: lime"></span>&nbsp;rgb(0 255 0); } /* RGB range 0-255 */
314314
em { color: <span class="swatch" style="--color: lime"></span>&nbsp;rgb(0% 100% 0%); } /* RGB range 0%-100% */
315-
em { color: <span class="swatch" style="--color: lime"></span>&nbsp;color(0 1 0); } /* RGB range 0.0-1.0 */
315+
em { color: <span class="swatch" style="--color: lime"></span>&nbsp;color(sRGB 0 1 0); } /* sRGB range 0.0-1.0 */
316316
</pre>
317317
</div>
318318

@@ -920,26 +920,27 @@ and there shall be no thousands separator.
920920
the serialization is not sufficient because the name and the link to the profile are also needed.
921921
-->
922922

923-
If the colorspace is sRGB, the colorspace must be omitted in the serialized result.
924-
<!--
925-
could go either way on that but we need to pick one, and this is shorter
926-
-->
923+
Note: If the colorspace is sRGB, the colorspace is explicitly required in the serialized result.
924+
927925

928926
The precision with which ''color()'' component values are retained,
929927
and thus the number of significant figures in the serialized value,
930928
is not defined in this specification,
931-
but for sRGB and CMYK colorspaces must at least be sufficient
929+
but for CMYK colorspaces must at least be sufficient
932930
to round-trip values
933931
with eight bit precision;
934932
this will result in at least two decimal places
935933
unless trailing zeroes have been omitted.
936934

937-
For the predefined colorspaces other than sRGB,
938-
which have wider gamuts and thus require more bits to avoid banding,
939-
the minimum precision for round-tripping is as follows:
935+
For the predefined colorspaces,
936+
the <em>minimum</em> precision for round-tripping is as follows:
940937

941938
<table class="data">
942939
<tr><th>Colorspace</th><th>Minimum bits</th></tr>
940+
<tr>
941+
<td>''srgb''</td>
942+
<td>10</td>
943+
</tr>
943944
<tr>
944945
<td>''display-p3''</td>
945946
<td>10</td>

0 commit comments

Comments
 (0)