nudge-to-integer-invalidation.html (894B)
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>Different epsilons in NudeToInteger and FuzzyEqual cause invalidations</title> 9 10 <body> 11 12 <svg viewBox="0 0 700 3000" width="700px" height="3000px"> 13 <g transform="translate(0, -220.999756)"> 14 <rect x="100" y="400" height="50" width="50" fill="grey" class="reftest-no-paint"/> 15 </g> 16 </svg> 17 18 <script> 19 20 var scrollPositions = [0, 50]; 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>