WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Relax the size check in largest-contentful-paint/image-upscaling.html #1189

@smfr

Description

@smfr

Test List

https://wpt.fyi/results/largest-contentful-paint/image-upscaling.html

Rationale

The test has:

    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');

Due to rounding errors, WebKit gets 3525 instead of 3524. The test should be revised to allow some slop.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions