Index: third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c35a512bec2ea33cbf04143cc0e34d92c0d3a421 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<script src="../resources/text-based-repaint.js"></script> |
+<script> |
+// When resizing the div that contains SVG, the SVG root element and rect resize accordingly. |
+// It's necessary to invalidate the rect in this case. |
+window.expectedObjectInvalidations.push("LayoutSVGRect rect"); |
+ |
+onload = runRepaintTest; |
+window.outputRepaintRects = false; |
+function repaintTest() { |
+ target.style.width = '200px'; |
+ target.style.height= '200px'; |
+}; |
+</script> |
+<div id="target" style="width: 100px; height: 100px"> |
+ <svg viewBox="0 0 200 200"> |
+ <rect x="50" y="50" width="100" height="100"/> |
+ </svg> |
+</div> |