transform-floating-point-invalidation.html (884B)
1 <!DOCTYPE html> 2 <html lang="en" class="reftest-wait" 3 reftest-displayport-x="0" 4 reftest-displayport-y="0" 5 reftest-displayport-w="800" 6 reftest-displayport-h="1000"> 7 <meta charset="utf-8"> 8 <title>Scrolling shouldn't invalidate the rect</title> 9 10 <body> 11 12 <svg width="824" height="1375" viewBox="0 0 660 1100"> 13 <rect x="100" y="600" width="120" height="120" fill="#EEE" 14 transform="matrix(0,0.969665,-2.0321494,0,1828.58132,65.718239)" 15 class="reftest-no-paint"/> 16 </svg> 17 18 <script> 19 20 var scrollPositions = [81, 82]; 21 if (location.search.includes("reverse")) { 22 scrollPositions.reverse(); 23 } 24 document.documentElement.scrollTop = scrollPositions[0]; 25 26 function doTest() { 27 document.documentElement.scrollTop = scrollPositions[1]; 28 document.documentElement.removeAttribute("class"); 29 } 30 document.addEventListener("MozReftestInvalidate", doTest); 31 32 </script>