paint-containment-001.html (1108B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title>Resize multicol with paint-contained child, without affecting layout, apart from column offsets</title> 4 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 5 <link rel="help" href="https://issues.chromium.org/issues/40596162"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 8 <div id="container" style="columns:2; gap:0; width:500px; column-fill:auto; height:100px; background:red;"> 9 <div style="contain:paint; width:50px; height:200px;"> 10 <div style="position:relative;"> 11 <div style="height:150px; background:green;"></div> 12 </div> 13 <div style="position:relative;"> 14 <div style="height:50px; background:green;"></div> 15 </div> 16 </div> 17 </div> 18 <script> 19 requestAnimationFrame(()=> { 20 requestAnimationFrame(()=> { 21 container.style.width = "100px"; 22 document.documentElement.classList.remove("reftest-wait"); 23 }); 24 }); 25 </script> 26 </html>