nudge-to-integer-invalidation.html 901 B

123456789101112131415161718192021222324252627282930313233
  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. <body>
  10. <svg viewBox="0 0 700 3000" width="700px" height="3000px">
  11. <g transform="translate(0, -220.999756)">
  12. <rect x="100" y="400" height="50" width="50" fill="grey" class="reftest-no-paint"/>
  13. </g>
  14. </svg>
  15. <script>
  16. var scrollPositions = [0, 50];
  17. if (location.search.includes("reverse")) {
  18. scrollPositions.reverse();
  19. }
  20. document.documentElement.scrollTop = scrollPositions[0];
  21. function doTest() {
  22. document.documentElement.scrollTop = scrollPositions[1];
  23. document.documentElement.removeAttribute("class");
  24. }
  25. document.addEventListener("MozReftestInvalidate", doTest, false);
  26. </script>