Skip to content

Commit 946938b

Browse files
committed
[css-color-5] move hue-adjuster back to color-mix, helps w3c#6140
1 parent 00b0acc commit 946938b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-color-5/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ Mixing colors: the ''color-mix()'' function {#color-mix}
125125

126126

127127
<pre class='prod'>
128-
<dfn>color-mix()</dfn> = color-mix( in <<color-space>> , [ <<color>> && <<percentage [0,100]>>? ]#{2})
128+
<dfn>color-mix()</dfn> = color-mix( in <<color-space>> , [ <<color>> && <<percentage [0,100]>>? ]#{2} <<hue-adjuster>>?)
129+
<dfn>&lt;hue-adjuster></dfn> = shorter | longer | increasing | decreasing | specified
130+
129131
</pre>
130132

131133
Percentages are required to be in the range 0% to 100%. Negative percentages are specifically disallowed. The percentages are normalized as follows:
@@ -712,12 +714,11 @@ Adjusting colors: the ''color-adjust'' function {#coloradjust}
712714
| <<xyz-adjuster>> | <<lab-adjuster>> | <<lch-adjuster>>
713715
] | alpha ] <<percentage>>?
714716
<dfn>&lt;srgb-adjuster></dfn> = red | green | blue
715-
<dfn>&lt;hsl-adjuster></dfn> = <<hue-adjuster>> | saturation | lightness
716-
<dfn>&lt;hwb-adjuster></dfn> = <<hue-adjuster>> | whiteness | blackness
717+
<dfn>&lt;hsl-adjuster></dfn> = hue | saturation | lightness
718+
<dfn>&lt;hwb-adjuster></dfn> = hue | whiteness | blackness
717719
<dfn>&lt;xyz-adjuster></dfn> = x | y | z
718720
<dfn>&lt;lab-adjuster></dfn> = lightness | a | b
719-
<dfn>&lt;lch-adjuster></dfn> = lightness | chroma | <<hue-adjuster>>
720-
<dfn>&lt;hue-adjuster></dfn> = hue [shorter | longer | increasing | decreasing | specified ]?
721+
<dfn>&lt;lch-adjuster></dfn> = lightness | chroma | hue
721722
</pre>
722723

723724
The meaning of the adjusters is defined by color space.

0 commit comments

Comments
 (0)