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: <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> |