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

Side by Side Diff: LayoutTests/svg/dynamic-updates/SVGUseElement-target-changed.html

Issue 234633004: Update <use> trees when the referenced element is changed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/dynamic-updates/SVGUseElement-target-changed-expected.txt » ('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
3 <style>
4 svg { width: 500px; height: 500px; }
5 </style>
6
7 <script src="../../resources/js-test.js"></script>
8
9 <svg viewBox="0 0 1000 1000" version="1.1">
10 <defs id="defs">
11 <ellipse id="ellipse" cx="200" cy="150" rx="200" ry="150" fill="salmon"/ >
12 </defs>
13 <use id="use" x="0" y="0" xlink:href="#ellipse"/>
14 </svg>
15
16 <script>
17 description("Adding or removing the element referenced by <use> should update th e rendering.");
18
19 var defs = document.getElementById("defs");
20 var use = document.getElementById("use");
21 var ellipse = document.getElementById("ellipse");
22 var bigElipse = ellipse.cloneNode(true);
23 bigElipse.setAttribute("rx", "500");
24
25 shouldBe("use.getBoundingClientRect().width", "200");
26
27 ellipse.remove();
28 shouldBe("use.getBoundingClientRect().width", "0");
29
30 defs.appendChild(bigElipse);
31 shouldBe("use.getBoundingClientRect().width", "500");
32 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dynamic-updates/SVGUseElement-target-changed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698