1546856-ref.html (501B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Reference for bug 1546856: When the first painted item in a layer is removed, invalidation takes the wrong last paint offset because it hasn't initialized the last paint offset for that layer yet for this paint</title> 4 <style> 5 body { 6 height: 4000px; 7 padding: 200px 0; 8 } 9 10 div { 11 width: 600px; 12 height: 200px; 13 box-sizing: border-box; 14 border: 1px solid black; 15 } 16 17 </style> 18 19 <div></div> 20 21 <script> 22 document.scrollingElement.scrollTop = 200; 23 </script>