Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-image-content-crash.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Crash test: asynchronously applying image content to image input</title>
<link rel="author" href="mailto:yuzhehan@chromium.org" title="Yu Han">
<style>
.content { content: url(data:text/plain,aaa); }
</style>
<input id="input" type="image" class=content>
<script>
onload = ()=> {
document.body.offsetTop;
input.setAttribute('class', '');
document.body.offsetTop;
}
</script>