<html>
<head>    
<script>
    window.onload = () => {
      if (window.testRunner) {
        testRunner.waitUntilDone();
        testRunner.setBackingScaleFactor(2, () => setTimeout(() => testRunner.notifyDone(), 0));
      }
    }
</script>

<style>
    #foo {
        width:100px;
        height:100px;
        background-image: image-set(linear-gradient(green, white) 1x, radial-gradient(red, blue) 2x, 'resources/blue-100-px-square.png' 3x);
    }
</style>
</head>

<body>
    <div>This test passes if the div below is a 100px green-white gradient square when devicePixelRatio is 1, a radial red-blue square when devicePixelRatio is 2, and a blue square when devicePixelRatio is 3.</div>
    <div id=foo></div>
</body>
</html>
