Bug 1791662 [wpt PR 35984] - Make multiple-centered-dialogs.html handle different...
commit7fb203767da94c700c268bc1a941d1e0a10bf0be
authorL. David Baron <dbaron@chromium.org>
Wed, 21 Sep 2022 19:58:37 +0000 (21 19:58 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 23 Sep 2022 22:53:38 +0000 (23 22:53 +0000)
treeffee486436569a1081e12d4fec6124f1ea9f11cf
parent904ae4227d7c08880d801b8d7f73c8a3992c72fb
Bug 1791662 [wpt PR 35984] - Make multiple-centered-dialogs.html handle different zoom levels better., a=testonly

Automatic update from web-platform-tests
Make multiple-centered-dialogs.html handle different zoom levels better.

This changes the test to get the necessary heights with subpixel
precision rather than with getters that round to pixels, and then
expects the result to be accurate within 0.05px.  These sizes may be
subpixel values when the device-pixel-scale is not an integer.

Fixed: 1365295
Change-Id: I1107a60cb8ff39f8d028f54a37b5ba13ab7b678b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3906230
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1049441}

--

wpt-commits: 51085f9ff9bf6685b3bb5664cb9d6f1f82c27933
wpt-pr: 35984
testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/multiple-centered-dialogs.html