Skip to content

Commit 97d0f58

Browse files
committed
[css-color-4] Unbounded HWB, fix w3c#8444
1 parent 44c3778 commit 97d0f58

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

css-color-4/Overview.bs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,17 @@ Value Definitions</h3>
440440
but still be outside the range of colors
441441
that can be produced by an output device
442442
(a screen, projector, or printer)
443+
444+
<!-- unbounded hsl
443445
or the range of colors that may be represented by a given color model
444-
(for example HSL or HWB).
446+
(for example HSL or HWB). -->
447+
445448
It is said to be <dfn export>out of gamut</dfn>.
446449

447450

448451
Each [=valid color=] is either <dfn export>in-gamut</dfn>
449-
for a particular output device (screen, or printer) or color space,
452+
for a particular output device (screen, or printer)
453+
<!-- unbounded hsl or color space, -->
450454
or it is [=out of gamut=].
451455

452456
<div class="example" id="ex-oog">
@@ -2516,12 +2520,18 @@ HWB Colors: ''hwb()'' function</h2>
25162520
as a percentage from ''0%'' (no whiteness) to ''100%'' (full whiteness).
25172521
Similarly, the third argument specifies the amount of black to mix in,
25182522
also from ''0%'' (no blackness) to ''100%'' (full blackness).
2523+
2524+
<!-- unbounded hwb
25192525
Values outside of these ranges
25202526
are not invalid,
25212527
but are clamped to the ranges defined here at parsed-value time.
25222528
If the sum of these two arguments is greater than 100%,
25232529
then at parsed-value time they are further normalized to add up to 100%,
2524-
with the same relative ratio.
2530+
with the same relative ratio. -->
2531+
2532+
Values outside of these ranges
2533+
are not invalid,
2534+
and correspond to colors outside the sRGB gamut.
25252535

25262536
The fourth argument specifies the alpha channel of the color.
25272537
It's interpreted identically to the fourth argument of the ''rgb()'' function.

0 commit comments

Comments
 (0)