Skip to content

Commit

Permalink
Bug 1509775 [wpt PR 14229] - Rename srcset/imgsizes link attributes t…
Browse files Browse the repository at this point in the history
…o imagesrcset/imagesizes, a=testonly

Automatic update from web-platform-tests
Rename srcset/imgsizes link attributes to imagesrcset/imagesizes

This patch renames "srcset" and "imgsizes" attributes on link
to "imagesrcset" and "imagesizes" respectively, to match the latest
spec PR [1].

Note: this feature is behind experimental-web-platform-features flag.

[1] whatwg/html#4048

Bug: 813452
Change-Id: I8eabfbd734e2f29e36b7f7a3c4a32f1237b042b1
Reviewed-on: https://chromium-review.googlesource.com/c/1350414
Reviewed-by: Kouhei Ueno <kouheichromium.org>
Reviewed-by: Kinuko Yasuda <kinukochromium.org>
Commit-Queue: Kunihiko Sakamoto <ksakamotochromium.org>
Cr-Commit-Position: refs/heads/master{#610782}

--

wpt-commits: a990dff8729c18279154f66650e83f01911216a4
wpt-pr: 14229

UltraBlame original commit: bb0ff9da601041924d15d595d43fcda992e9b17c
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent 4699f91 commit c7e7d19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/preload/resources/preload_helper.js"></script>
<script>
var t = async_test('Makes sure that Link headers preload images with (experimental) srcset/imgsizes attributes.');
var t = async_test('Makes sure that Link headers preload images with (experimental) imagesrcset/imagesizes attributes.');
</script>
<body>
<script src="resources/dummy.js?pipe=trickle(d3)&link-header-preload-srcset"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Link: <resources/square.png?1x>; rel=preload; as=image; srcset="resources/square.png?2x 2x, resources/square.png?3x 3x"
Link: <resources/square.png?base>; rel=preload; as=image; srcset="resources/square.png?200 200w, resources/square.png?400 400w, resources/square.png?800 800w"; imgsizes=400px
Link: <resources/square.png?base>; rel=preload; as=image; srcset="resources/square.png?150 150w, resources/square.png?300 300w, resources/square.png?600 600w"; imgsizes="(min-width: 300px) 300px, 150px"
Link: <resources/square.png?1x>; rel=preload; as=image; imagesrcset="resources/square.png?2x 2x, resources/square.png?3x 3x"
Link: <resources/square.png?base>; rel=preload; as=image; imagesrcset="resources/square.png?200 200w, resources/square.png?400 400w, resources/square.png?800 800w"; imagesizes=400px
Link: <resources/square.png?base>; rel=preload; as=image; imagesrcset="resources/square.png?150 150w, resources/square.png?300 300w, resources/square.png?600 600w"; imagesizes="(min-width: 300px) 300px, 150px"

0 comments on commit c7e7d19

Please sign in to comment.