Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / text-tref-03-b-dynamic2.svg
blob84408b4315ced792510f2d5ceb5ea7be2c56f281
1 <!DOCTYPE svg [
2 <!ATTLIST bar id ID #REQUIRED>
3 ]>
4 <svg version="1.1" baseProfile="basic" id="svg-root"
5 width="100%" height="100%" viewBox="0 0 480 360" onload="runTest()"
6 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
7 <!--======================================================================-->
8 <!--= SVG 1.1 2nd Edition Test Case =-->
9 <!--======================================================================-->
10 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
11 <!--= Institute of Technology, European Research Consortium for =-->
12 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
13 <!--= All Rights Reserved. =-->
14 <!--= See http://www.w3.org/Consortium/Legal/. =-->
15 <!--======================================================================-->
16 <script>
17 if (window.testRunner)
18 testRunner.dumpAsText();
19 function runTest() {
20 var e = document.getElementById('hello');
21 e.appendChild(document.createTextNode('F'));
22 e.appendChild(document.createTextNode('l'));
23 e.appendChild(document.createTextNode('a'));
24 e.appendChild(document.createTextNode('t'));
25 e.appendChild(document.createTextNode('t'));
26 e.appendChild(document.createTextNode('e'));
27 e.appendChild(document.createTextNode('n'));
28 e.appendChild(document.createTextNode('e'));
29 e.appendChild(document.createTextNode('d'));
31 </script>
32 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
33 <!-- Test case label -->
34 <text x="75" y="25" font-family="SVGFreeSansASCII,sans-serif" font-size="12" fill="blue">Test dynamically adding text content that 'tref' references.</text>
36 <!-- now make a new SVG document fragment, and hide it from being rendered -->
37 <defs>
38 <text id="hello"/>
39 </defs>
41 <text x="75" y="200" font-size="36" font-family="sans-serif" fill="green" id="target">
42 <tref id="tref" xlink:href="#hello"/>
43 </text>
45 </g>
46 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
47 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.4 $</text>
48 </g>
49 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
50 <!-- comment out this watermark once the test is approved -->
51 <!--<g id="draft-watermark">
52 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
53 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
54 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
55 </g>-->
56 </svg>