Skip to content

Commit 43c8b65

Browse files
committed
[css-color-4] Fix note about double positions making a stripe. Add note about color before/after the stop lists. #11381
1 parent 6204839 commit 43c8b65

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

css-images-4/Overview.bs

+11-2
Original file line numberDiff line numberDiff line change
@@ -1878,8 +1878,11 @@ Color Stop Lists</h4>
18781878
A <a>color stop</a> with two positions is equivalent
18791879
to specifying two <a>color stops</a> with the same color,
18801880
one for each position.
1881-
<span class='note'>Specifying two locations makes it easier to create solid-color "stripes" in a gradient,
1882-
without having to repeat the color twice.</span>
1881+
1882+
Note: Usually, this results in a solid-color "stripe"
1883+
between the two positions,
1884+
but using a ''longer'' <<color-interpolation-method>>
1885+
will instead create a "rainbow" between the two positions.
18831886

18841887
Percentages are resolved against the length of the <a>gradient line</a>
18851888
between the <a>starting point</a> and <a>ending point</a>,
@@ -1930,6 +1933,12 @@ Coloring the Gradient Line</h4>
19301933
the color space used for gradient interpolation
19311934
is the default interpolation color space, Oklab, as defined in [[css-color-4]].
19321935

1936+
Note: The <<color-interpolation-method>>
1937+
only affects the colors <em>between</em> stops.
1938+
The color before the first and after the last stop
1939+
is equal to the first/last stop,
1940+
<em>regardless</em> of the interpolation method.
1941+
19331942
<wpt>
19341943
gradients-with-transparent.html
19351944
gradient/css-color-4-colors-default-to-oklab-gradient.html

0 commit comments

Comments
 (0)