2 <script src="../repaint/resources/text-based-repaint.js"></script>
6 var div1 = document.getElementById("div1");
7 var div2 = document.getElementById("div2");
8 div1.style.overflow = 'visible';
9 div2.style.display = 'block';
10 document.body.offsetTop;
11 div1.style.overflow = 'hidden';
12 div2.style.display = 'none';
33 <body onload="runRepaintTest()">
37 <p>crbug.com/377520: Invalidate the rect of an element that is being removed from the tree even when it is overflow-clipped at the time of invalidation.</p>