OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/text-based-repaint.js"></script> |
| 3 <script> |
| 4 window.testIsAsync = true; |
| 5 |
| 6 // Disable under-invalidation checking because the "under-invalidation" of |
| 7 // offscreen SVG animation is intentional. |
| 8 if (window.internals) |
| 9 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false; |
| 10 |
| 11 function repaintTest() { |
| 12 if (window.internals) |
| 13 internals.advanceImageAnimation(targetImage); |
| 14 requestAnimationFrame(function() { |
| 15 finishRepaintTest(); |
| 16 }); |
| 17 } |
| 18 |
| 19 function targetImageOnload() { |
| 20 targetDiv.style.transform = "translateY(-1000px)"; |
| 21 runRepaintTest(); |
| 22 } |
| 23 |
| 24 window.onload = function() { |
| 25 targetImage.onload = targetImageOnload; |
| 26 targetImage.src = "../../../svg/as-image/resources/animated-rect-fixed-size-
2.svg"; |
| 27 } |
| 28 </script> |
| 29 <div id="targetDiv" style="height: 2000px; width: 2000px; will-change: transform
"> |
| 30 <img id="targetImage"> |
| 31 </div> |
OLD | NEW |