Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-images/image-set/image-set-first-match-rendering.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Image set type first match rendering</title>
<link rel="author" title="Noam Rosenthal" href="mailto:noam@webkit.org">
<link rel="author" title="Traian Captan" href="mailto:tcaptan@chromium.org">
<link rel="match" href="reference/image-set-rendering-ref.html">
<meta name="assert" content="image-set rendering picks first valid match">
<style>
#test {
background-image: image-set(
url("/images/green.png") 1x,
url("/images/red.png") 1x
);
width: 100px;
height: 100px;
}
</style>
<div id="test"></div>