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

Unified Diff: third_party/WebKit/LayoutTests/svg/transforms/svgdom-manipulation-before-attach.html

Issue 2745053005: Invalidate SVG 'transform' pres. attribute style even if 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/transforms/svgdom-manipulation-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/transforms/svgdom-manipulation-before-attach.html
diff --git a/third_party/WebKit/LayoutTests/svg/transforms/svgdom-manipulation-before-attach.html b/third_party/WebKit/LayoutTests/svg/transforms/svgdom-manipulation-before-attach.html
new file mode 100644
index 0000000000000000000000000000000000000000..500442ecc0e99c2b219896614b79341f50027606
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/transforms/svgdom-manipulation-before-attach.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<svg></svg>
+<script>
+var svg = document.querySelector("svg");
+var g = document.createElementNS('http://www.w3.org/2000/svg', 'g');
+var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
+var attrs = { x: 100, y:100, width: 100, height: 100, fill: 'green' };
+for (var k in attrs)
+ rect.setAttribute(k, attrs[k]);
+
+var matrix = svg.createSVGMatrix().translate(-100, -100);
+g.transform.baseVal.appendItem(svg.createSVGTransformFromMatrix(matrix));
+
+svg.appendChild(g).appendChild(rect);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/transforms/svgdom-manipulation-before-attach-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698