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

Side by Side Diff: LayoutTests/svg/custom/use-modify-target-symbol.svg

Issue 278033003: Avoid using instanceRoot in layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
OLDNEW
1 <?xml version="1.0" standalone="no"?> 1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1 .1/DTD/svg11.dtd"> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1 .1/DTD/svg11.dtd">
3 <svg viewBox="0 0 400 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmln s:xlink="http://www.w3.org/1999/xlink"> 3 <svg viewBox="0 0 400 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmln s:xlink="http://www.w3.org/1999/xlink">
4 <defs> 4 <defs>
5 <symbol id="symbol" overflow="visible" viewBox="0 0 1000 1000"> 5 <symbol id="symbol" overflow="visible" viewBox="0 0 1000 1000">
6 <rect stroke-width="5px" fill="red" stroke="navy" width="60" height="10" /> 6 <rect stroke-width="5px" fill="red" stroke="navy" width="60" height="10" />
7 </symbol> 7 </symbol>
8 </defs> 8 </defs>
9 9
10 <use x="25" y="25" xlink:href="#symbol"/> 10 <use x="25" y="25" xlink:href="#symbol"/>
11 <use x="125" y="25" xlink:href="#symbol"/> 11 <use x="125" y="25" xlink:href="#symbol"/>
12 12
13 <text font-size="10" id="text" x="30" y="70">You should shapes _above_ this text </text> 13 <text font-size="10" id="text" x="30" y="70">You should shapes _above_ this text </text>
14 14
15 <script> 15 <script>
16 var useElement = document.getElementsByTagName("use")[1]; 16 var useElement = document.getElementsByTagName("use")[1];
17 var element = useElement.instanceRoot.correspondingElement; 17 var element = document.getElementById("symbol");
18 element.removeAttribute("viewBox"); 18 element.removeAttribute("viewBox");
19 </script> 19 </script>
20 </svg> 20 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/use-modify-target-container.svg ('k') | LayoutTests/svg/custom/use-on-use-with-child.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698