Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..698d341a8fc7c841cb86b284aa260593f42ce9dd |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html |
| @@ -0,0 +1,31 @@ |
| +<!DOCTYPE html> |
| +<script src="../resources/text-based-repaint.js"></script> |
| +<script> |
| +window.testIsAsync = true; |
| + |
| +// Disable under-invalidation checking because the "under-invalidation" of |
| +// offscreen gif animation is intentional. |
|
kouhei (in TOK)
2017/03/30 13:28:27
SVG
fs
2017/03/30 14:37:51
Doh! C'n'P spot missed, thanks for catching. Fixed
|
| +if (window.internals) |
| + internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false; |
| + |
| +function repaintTest() { |
| + if (window.internals) |
| + internals.advanceImageAnimation(targetImage); |
| + requestAnimationFrame(function() { |
| + finishRepaintTest(); |
| + }); |
| +} |
| + |
| +function targetImageOnload() { |
| + targetDiv.style.transform = "translateY(-1000px)"; |
| + runRepaintTest(); |
| +} |
| + |
| +window.onload = function() { |
| + targetImage.onload = targetImageOnload; |
| + targetImage.src = "../../../svg/as-image/resources/animated-rect-fixed-size-2.svg"; |
| +} |
| +</script> |
| +<div id="targetDiv" style="height: 2000px; width: 2000px; will-change: transform"> |
| + <img id="targetImage"> |
| +</div> |