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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/svgdom-manipulation-of-svg-root-width-before-attach.html

Issue 2747153002: Dirty pres. attribute style on <svg> dimension change when not attached (Closed)
Patch Set: Created 3 years, 9 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/LayoutTests/svg/custom/svgdom-manipulation-of-svg-root-width-before-attach-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/svgdom-manipulation-of-svg-root-width-before-attach-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698