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));
}, 'A downscaled image (using scale) should report the displayed size');
Test List
https://wpt.fyi/results/largest-contentful-paint/image-upscaling.html
Rationale
The test has:
Due to rounding errors, WebKit gets
3525instead of3524. The test should be revised to allow some slop.