Skip to content

Commit 4a5a842

Browse files
authored
Merge pull request #6660 from vHeemstra/main
[css-images-4] Fixed issue in 3.5.2: "Add a visual example of a color hint being used."
2 parents 322143a + 416971e commit 4a5a842

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

css-images-4/Overview.bs

+17-1
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,23 @@ Coloring the Gradient Line</h4>
17881788
between the surrounding color stops,
17891789
with the “halfway color” occurring exactly where the hint specifies.
17901790

1791-
Issue: Add a visual example of a color hint being used.
1791+
<div class=example>
1792+
Here an example of a linear gradient without [=transition hint=] (top) compared to one with a transition hint between the red and blue [=color stops=] (bottom).
1793+
1794+
<img src="images/gradient-colors-transition-hint-comparison.png" alt="">
1795+
1796+
Top - Without transition hint (falling back to the default halfway transition hint):
1797+
1798+
<pre class=lang-css>
1799+
background: linear-gradient(to right, red 0%, blue 100%);
1800+
</pre>
1801+
1802+
Bottom - With transition hint:
1803+
1804+
<pre class=lang-css>
1805+
background: linear-gradient(to right, red 0%, 25%, blue 100%);
1806+
</pre>
1807+
</div>
17921808

17931809
If multiple <a>color stops</a> have the same position,
17941810
they produce an infinitesimal transition from the one specified first in the list
Loading

0 commit comments

Comments
 (0)