зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1509775 [wpt PR 14229] - Rename srcset/imgsizes link attributes to 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] https://github.com/whatwg/html/pull/4048 Bug: 813452 Change-Id: I8eabfbd734e2f29e36b7f7a3c4a32f1237b042b1 Reviewed-on: https://chromium-review.googlesource.com/c/1350414 Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#610782} -- wpt-commits: a990dff8729c18279154f66650e83f01911216a4 wpt-pr: 14229
This commit is contained in:
Родитель
57dedd280b
Коммит
1b68d50ea5
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче