github web-platform-tests/wpt merge_pr_46248

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
7 months ago

Add WPT coverage of Sec-CH-Width

This patch adds WPT coverage of Sec-CH-Width:
https://wicg.github.io/responsive-image-client-hints/#sec-ch-width

This re-lands https://crrev.com/1300292 with the following changes:

  1. The test now ensures the image onload handler does not fire before
    the test runs using an onload attribute.
  2. The test now uses a sizes attribute, which is required per spec.
  3. The test now works on platforms with different device pixel ratios.

Bug: 335630145
Change-Id: I77d64d4394d5ced924ed1e92ba2110b5237114f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5537569
Auto-Submit: Philip Rogers pdr@chromium.org
Reviewed-by: Traian Captan tcaptan@chromium.org
Commit-Queue: Traian Captan tcaptan@chromium.org
Cr-Commit-Position: refs/heads/main@{#1300949}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.