Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-content/pseudo-element-image-set.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<title>content: image-set() of a gradient on a pseudo element</title>
<link rel="match" href="pseudo-element-image-set-ref.html">
<style>
#target::before {
content: image-set(linear-gradient(purple, purple) 1x);
display: block;
width: 100px;
height: 100px;
}
</style>
<div id="target"></div>