Index: third_party/WebKit/LayoutTests/svg/custom/svgdom-manipulation-of-svg-root-width-before-attach.html |
diff --git a/third_party/WebKit/LayoutTests/svg/custom/svgdom-manipulation-of-svg-root-width-before-attach.html b/third_party/WebKit/LayoutTests/svg/custom/svgdom-manipulation-of-svg-root-width-before-attach.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f35a91e31a590e4a029e72c76da18432f533cc5f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/custom/svgdom-manipulation-of-svg-root-width-before-attach.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<style> |
+svg { height: 200px } |
+</style> |
+<body> |
+<script> |
+var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); |
+rect.setAttribute('width', '100'); |
+rect.setAttribute('height', '100'); |
+rect.setAttribute('fill', 'green'); |
+var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); |
+svg.appendChild(rect); |
+svg.setAttribute('viewBox', '0 0 200 100'); |
+svg.setAttribute('preserveAspectRatio', 'xMinYMin'); |
+svg.width.baseVal.valueAsString = '200'; |
+document.body.appendChild(svg); |
+</script> |