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

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

Issue 2755813004: 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <svg></svg>
3 <script>
4 var svg = document.querySelector("svg");
5 var g = document.createElementNS('http://www.w3.org/2000/svg', 'g');
6 var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
7 var attrs = { x: 100, y:100, width: 100, height: 100, fill: 'green' };
8 for (var k in attrs)
9 rect.setAttribute(k, attrs[k]);
10
11 var matrix = svg.createSVGMatrix().translate(-100, -100);
12 g.transform.baseVal.appendItem(svg.createSVGTransformFromMatrix(matrix));
13
14 svg.appendChild(g).appendChild(rect);
15 </script>
OLDNEW
« 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