tor-browser

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

commit b25c08610a930762e10c5df647b602a75b54d1d1
parent 1014dbbaf98669de86709883e0045cf4fb4d2b3d
Author: Simon Fraser <smfr@users.noreply.github.com>
Date:   Fri,  3 Oct 2025 09:00:04 +0000

Bug 1991141 [wpt PR 55083] - Relax pixel size checks in largest-contentful-paint/image-upscaling.html, a=testonly

Automatic update from web-platform-tests
Relax pixel size checks in largest-contentful-paint/image-upscaling.html (#55083)

Fixes https://github.com/web-platform-tests/interop/issues/1189

Allow 2px of slop in an image downscaling subtest.
--

wpt-commits: 2f93924802b9d9ae75fcfdb184702a1d0d50325b
wpt-pr: 55083

Diffstat:
Mtesting/web-platform/tests/largest-contentful-paint/image-upscaling.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/web-platform/tests/largest-contentful-paint/image-upscaling.html b/testing/web-platform/tests/largest-contentful-paint/image-upscaling.html @@ -72,7 +72,7 @@ promise_test(async t => { const { naturalSize, lcpSize } = await load_image_and_get_lcp_size(t, { transform: 'scale(0.5)' }); - assert_equals(Math.floor(lcpSize), Math.floor(naturalSize / 4)); + assert_approx_equals(Math.floor(lcpSize), Math.floor(naturalSize / 4), 2); }, 'A downscaled image (using scale) should report the displayed size'); promise_test(async t => {