Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Containment Test: Remove size from style.contain</title>
<meta name="assert" content="After removing size from style.contain, the element should trigger layout">
<link rel="match" href="reference/pass_if_pass_below_clipped.html">
<style>
</style>
<p>Test passes if there is the word "PASS" below.</p>
<div id="container" style="contain: size; overflow: hidden;"><span>PASS</span></div>
<script>
window.requestAnimationFrame(() => {
document.getElementById("container").style.contain = "";
});
</script>