This test ensures that the PaintWorkletGlobalScope.devicePixelRatio returns the correct value, which should be identical as window.devicePixelRatio. To manually test, open both this file and "device-pixel-ratio-ref.html" with a browser, and you should see two idential green rectangles.