Skip to content

Commit f493c94

Browse files
committed
[css-backgrounds-3] Add example of using gradients in background-image and add informative cross-reference to css-images-3.
1 parent 08cd024 commit f493c94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css-backgrounds-3/Overview.bs

+5-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ Value Definitions</h3>
9797
using the <a href="https://www.w3.org/TR/css-values-3/#value-defs">value definition syntax</a> from [[!CSS-VALUES-3]].
9898
Value types not defined in this specification are defined in CSS Values &amp; Units [[!CSS-VALUES-3]].
9999
Combination with other CSS modules may expand the definitions of these value types.
100+
For example, combining with <a href="https://www.w3.org/TR/css-images/">CSS Images</a>
101+
allows for using CSS gradients as 'background-image' or 'border-image' values.
102+
[[CSS-IMAGES-3]]
100103

101104
In addition to the property-specific values listed in their definitions,
102105
all properties defined in this specification
@@ -287,9 +290,10 @@ controls for image display.
287290
<div class="example">
288291
<p>Some examples specifying background images:</p>
289292
<pre>
290-
body { background-image: url("marble.svg") }
293+
html { background-image: url("marble.svg") }
291294
p { background-image: none }
292295
div { background-image: url(tl.png), url(tr.png) }
296+
main { background-image: radial-gradient(at bottom right, transparent, white); }
293297
</pre>
294298
</div>
295299

0 commit comments

Comments
 (0)