Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that disables it given conditions:
- os == "android" : bug 1550895 (frequently fails on geckoview)
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/the-img-element/img-with-containment-and-size.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<title>Ensure images with containment and size are rendered properly</title>
<meta charset="utf-8">
<link rel="match" href="img-with-containment-and-size-ref.html">
<style>
img {
contain: paint;
width: 200px;
height: 100px;
will-change: transform;
}
</style>
<script>
onload = () => {
var i = new Image();
i.onload = function() {
document.body.appendChild(i);
document.documentElement.classList.remove("reftest-wait");
};
i.src = "image.png";
};
</script>