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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/getscreenctm-use-with-additional-translation.html

Issue 2853223002: getScreenCTM on <use> should not include the additional translation (Closed)
Patch Set: Created 3 years, 8 months 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/Source/core/svg/SVGElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/dom/getscreenctm-use-with-additional-translation.html
diff --git a/third_party/WebKit/LayoutTests/svg/dom/getscreenctm-use-with-additional-translation.html b/third_party/WebKit/LayoutTests/svg/dom/getscreenctm-use-with-additional-translation.html
new file mode 100644
index 0000000000000000000000000000000000000000..9c06dc5fd34184dd772d3fb4c6888c5f488744e4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/dom/getscreenctm-use-with-additional-translation.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>getScreenCTM: &lt;use> additional translation not included</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<svg>
+ <defs>
+ <rect id="r" width="100" height="100"/>
+ </defs>
+ <use href="#r" x="100" y="50" fill="blue"/>
+</svg>
+<script>
+test(function() {
+ var m_use = document.querySelector('use').getScreenCTM();
+ var m_svg = document.querySelector('svg').getScreenCTM();
+ for (let prop of ['a', 'b', 'c', 'd', 'e', 'f'])
+ assert_equals(m_use[prop], m_svg[prop], prop);
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698