Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html

Issue 2511353002: Repaint SVG subtree on viewport changes (resize) (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..e3bf5c0fe80d6701c67ee476e7261da02ac36f0a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html
@@ -0,0 +1,22 @@
+<!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");
+window.outputRepaintRects = false;
+
+function repaintTest() {
+ target.style.width = "600px";
+};
+onload = runRepaintTest;
+</script>
+<div id="target" style="width: 200px; height: 400px">
+ <svg width='500' height='400' viewBox='0 0 500 400'
+ style='width: 100%; height: 100%; transform: translateZ(0)'>
+ <rect width='500' height='400' fill='green'/>
+ </svg>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698