Skip to content

Commit 001971b

Browse files
committed
[css-color-4] set chroma to 0 when converting powerless hue to missing
1 parent dbb54ef commit 001971b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

css-color-4/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,11 @@ will have a [=powerless=] hue component.
12931293
have an <em>extremely small</em> chroma rather than precisely ''0%'';
12941294
as a result, the hue component is [=powerless=].
12951295

1296+
When changing a powerless hue component to a [=missing component=],
1297+
the chroma (or other measure of colorfulness, such as saturation in ''hsl'') is set to zero
1298+
to avoid amplifying floating-point noise.
1299+
In the case of ''hwb'' set ''b'' to ''100 - w'' or if either ''b'' or ''w'' is missing set the other component to ''100''.
1300+
12961301
<h3 id=parse-color>
12971302
Parsing a <<color>> Value</h3>
12981303

0 commit comments

Comments
 (0)