Files
tubestation/testing/web-platform/tests/client-hints/resources
Philip Rogers bc7cb768f4 Bug 1896616 [wpt PR 46248] - Add WPT coverage of Sec-CH-Width, a=testonly
Automatic update from web-platform-tests
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}

--

wpt-commits: b70defdd6adc5eb0d836e28c1adec76e2097c9e6
wpt-pr: 46248
2024-05-23 10:00:12 +00:00
..