Status: FAIL | Duration: 13ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-backgrounds/hidpi/simple-bg-color.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-color"> <link rel="match" href="simple-bg-color-ref.html"> <style> .box1 { width: 100px; height: 150px; background-color: green; } .box2 { width: 200px; height: 250px; background-color: red; } </style> <body> <div class='box1'></div> <div class='box2'></div> </body>
/css/css-backgrounds/hidpi/simple-bg-color-ref.html
<!DOCTYPE html> <body> <canvas id="canvas" width="400" height="800" style="image-rendering: crisp-edges"></canvas> </body> <script> var canvas = document.getElementById('canvas'); canvas.style.width = (canvas.width / 2) + 'px'; canvas.style.height = (canvas.height / 2) + 'px'; var ctx = canvas.getContext('2d'); ctx.scale(2, 2); ctx.fillStyle = 'green'; ctx.fillRect(0, 0, 100, 150); ctx.fillStyle = 'red'; ctx.fillRect(0, 150, 200, 250); </script>