devicePixelRatio.html (520B)
1 <!-- 2 We currently assume the devicePixelRatio is 1; however, 3 this assumption may change in the future: see 4 <https://github.com/web-platform-tests/rfcs/issues/220> 5 6 This acts both as a pointer to that issue (comments very 7 welcome!) and as a warning for those running tests in other 8 configurations. 9 --> 10 <!doctype html> 11 <link rel=match href=devicePixelRatio-ref.html> 12 <p><code>window.devicePixelRatio: <span id=dpr></span></code></p> 13 <script> 14 document.querySelector("#dpr").textContent = window.devicePixelRatio; 15 </script>