Skip to content

Commit

Permalink
[css-color-4] Unbounded HWB, fix #8444
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Mar 22, 2023
1 parent 44c3778 commit 97d0f58
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions css-color-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,17 @@ Value Definitions</h3>
but still be outside the range of colors
that can be produced by an output device
(a screen, projector, or printer)

<!-- unbounded hsl
or the range of colors that may be represented by a given color model
(for example HSL or HWB).
(for example HSL or HWB). -->

It is said to be <dfn export>out of gamut</dfn>.


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

<div class="example" id="ex-oog">
Expand Down Expand Up @@ -2516,12 +2520,18 @@ HWB Colors: ''hwb()'' function</h2>
as a percentage from ''0%'' (no whiteness) to ''100%'' (full whiteness).
Similarly, the third argument specifies the amount of black to mix in,
also from ''0%'' (no blackness) to ''100%'' (full blackness).

<!-- unbounded hwb
Values outside of these ranges
are not invalid,
but are clamped to the ranges defined here at parsed-value time.
If the sum of these two arguments is greater than 100%,
then at parsed-value time they are further normalized to add up to 100%,
with the same relative ratio.
with the same relative ratio. -->

Values outside of these ranges
are not invalid,
and correspond to colors outside the sRGB gamut.

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

0 comments on commit 97d0f58

Please sign in to comment.