Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<style>
img, object, svg, input { display: block }
div {
content: url(nonexistent.png?1);
width: 32px;
height: 32px;
}
</style>
<script>
const WORKER = "printpreview_images_sw.js";
if (location.href.includes("registered")) {
console.log("REGISTERED");
onload = function() {
postMessage("ready", "*");
}
onbeforeunload = function() {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister()
}
})
navigator.serviceWorker.unregister(WORKER);
}
} else {
navigator.serviceWorker.oncontrollerchange = function() {
location.href = location.href + "?registered";
};
navigator.serviceWorker.register(WORKER);
}
</script>
<div></div>
<picture>
<source srcset="nonexistent.png?2">
<img width=32 height=32>
</picture>
<picture>
<source srcset="nonexistent.png?3" media="print">
<source srcset="animated.gif" media="not print">
<img width=32 height=32>
</picture>
<img src="nonexistent.png?4" width=32 height=32>
<svg width="32" height="32">
<image x=0 y=0 href="nonexistent.png?7" width=32 height=32></image>
</svg>
<input type="image" src="nonexistent.png?6" width=32 height=32>