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:
- The test now ensures the image onload handler does not fire before
the test runs using an onload attribute. - The test now uses a sizes attribute, which is required per spec.
- 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}