Index: third_party/WebKit/LayoutTests/svg/custom/object-current-scale.html |
diff --git a/third_party/WebKit/LayoutTests/svg/custom/object-current-scale.html b/third_party/WebKit/LayoutTests/svg/custom/object-current-scale.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d07edb87c5a044cd5a68ea7c08b2095b54009dd |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/custom/object-current-scale.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
+<script> |
+ function test() |
+ { |
+ var obj = document.querySelector("object"); |
+ var svgdoc = obj.contentDocument; |
+ var svgroot = svgdoc.documentElement; |
+ svgroot.currentScale = 0.5; |
+ } |
+</script> |
+<object onload="runAfterLayoutAndPaint(test,true)" data="resources/green-rect.svg" type="image/svg+xml"> |
+</object> |
+<svg> |
+ <rect width='100' height='100' fill='green'/> |
+</svg> |