tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 3a834e5c8334a0196d3af2f8c06c54b6e8106b8e
parent 8162bb8fd7696635d556722ddaf5b3d8c75cd4b2
Author: Sam Sneddon <gsnedders@apple.com>
Date:   Fri, 14 Nov 2025 10:23:50 +0000

Bug 2000042 [wpt PR 55575] - Add an infrastructure reftest for devicePixelRatio, a=testonly

Automatic update from web-platform-tests
Add an infrastructure reftest for devicePixelRatio

While discussions are ongoing about what the semantics should be, and
thus this may change in future, let us at least test the status quo.

--

wpt-commits: c3bb201215849adb80695dfe7fa8ef541cd179f2
wpt-pr: 55575

Diffstat:
Atesting/web-platform/tests/infrastructure/reftest/devicePixelRatio-ref.html | 2++
Atesting/web-platform/tests/infrastructure/reftest/devicePixelRatio.html | 15+++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/infrastructure/reftest/devicePixelRatio-ref.html b/testing/web-platform/tests/infrastructure/reftest/devicePixelRatio-ref.html @@ -0,0 +1,2 @@ +<!doctype html> +<p><code>window.devicePixelRatio: <span id=dpr>1</span></code></p> diff --git a/testing/web-platform/tests/infrastructure/reftest/devicePixelRatio.html b/testing/web-platform/tests/infrastructure/reftest/devicePixelRatio.html @@ -0,0 +1,15 @@ +<!-- +We currently assume the devicePixelRatio is 1; however, +this assumption may change in the future: see +<https://github.com/web-platform-tests/rfcs/issues/220> + +This acts both as a pointer to that issue (comments very +welcome!) and as a warning for those running tests in other +configurations. +--> +<!doctype html> +<link rel=match href=devicePixelRatio-ref.html> +<p><code>window.devicePixelRatio: <span id=dpr></span></code></p> +<script> +document.querySelector("#dpr").textContent = window.devicePixelRatio; +</script>