Skip to content

Commit f9305a1

Browse files
committed
[css-color-4] consistent minimum precision between lab() and color(lab)
1 parent f51970d commit f9305a1

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

css-color-4/Overview.bs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,17 @@ and there shall be no thousands separator.
851851
but due to the wide gamut must be sufficient
852852
to round-trip L values between 0 and 100,
853853
and a and b values between ±127,
854-
with at least twelve bit precision;
855-
this will result in at least two decimal places
854+
with at least sixteen bit precision;
855+
this will result in at least three decimal places
856856
unless trailing zeroes have been omitted.
857-
(16bit, or half float, is recommended for internal storage).
857+
(half float or float, is recommended for internal storage).
858858
Values must be <a href="https://drafts.csswg.org/css-values-4/#combine-integers">rounded towards +∞</a>, not truncated.
859859

860+
Note: a and b values outside ±127 are possible
861+
with ultrawide gamut spaces. For example, <em>all</em>
862+
of the ''prophoto-rgb'' primaries and secondaries
863+
exceed this range, but are within ±200.
864+
860865
<a href="#serializing-alpha-values">As noted earlier</a>,
861866
unitary alpha values are not explicitly serialized.
862867
Non-unitary alpha values must be explicitly serialized,
@@ -3498,7 +3503,7 @@ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98-rgb'', ''prophoto-rgb'',
34983503
<figure>
34993504
<img src="images/prophoto-prim-sec.svg" style="width: 80.68vmin"
35003505
alt="diagram of rec2020 primaries and secondaries in LCH">
3501-
<figcaption>Visualization of the protphoto-rgb colorspace in LCH. The primaries and secondaries are shown
3506+
<figcaption>Visualization of the prophoto-rgb colorspace in LCH. The primaries and secondaries are shown
35023507
(but in sRGB, not in the correct colors).
35033508
For comparison, the sRGB primaries and secondaries
35043509
are also shown, as dashed circles.

0 commit comments

Comments
 (0)