Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /resource-timing/initiator-type/img-srcset.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Resource Timing initiator type: img with srcset attribute</title>
<link rel="help" href="https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-initiatortype"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resource-timing/resources/observe-entry.js"></script>
<script src="resources/initiator-type-test.js"></script>
</head>
<body>
<img src="/resource-timing/resources/resource_timing_test0.png"
srcset="/resource-timing/resources/resource_timing_test0.png?id=srcset 67w"
sizes="67px"></img>
<script>
initiator_type_test("resource_timing_test0.png?id=srcset", "img", "<img srcset>");
</script>
</body>
</html>