Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / intersection-list-nested-svg.svg
blobe5434c5ca85fd835da580bc26e5d881af1aea0d8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <svg xmlns="http://www.w3.org/2000/svg" id="root" onload="runTest()">
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function runTest()
9 var testSVG = document.getElementById('askedForIntersection');
10 var r = testSVG.createSVGRect();
11 r.x = 0;
12 r.y = 0;
13 r.width = 100;
14 r.height = 100;
16 var content = testSVG.getIntersectionList(r, testSVG).length == 2 ? 'PASS' : 'FAIL';
17 var txt = document.createElementNS("http://www.w3.org/2000/svg", "text");
18 txt.appendChild(document.createTextNode(content));
19 testSVG.appendChild(txt);
21 </script>
22 <rect x="0" y="0" width="100" height="100" id="r1"/>
23 <svg id="askedForIntersection">
24 <rect x="0" y="0" width="100" height="100" id="r2"/>
25 <svg id="nestedSVG">
26 <rect x="0" y="0" width="100" height="100" id="r3"/>
27 </svg>
28 </svg>
29 </svg>