Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / struct-frag-05-t.svg
blob48d6136791b5d4b60cfdaaeabb512933bf6f022c
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--======================================================================-->
3 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
4 <!--= Institute of Technology, Institut National de Recherche en =-->
5 <!--= Informatique et en Automatique, Keio University). All Rights =-->
6 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
7 <!--======================================================================-->
8 <!-- NOTE: CVS will automatically update the -->
9 <!-- "$RCSfile: struct-frag-05-t.svg,v $" and "$Revision: 1.13 $" -->
10 <!-- fields in the file. -->
11 <!-- There is no need to update this information. -->
12 <!-- =====================================================================-->
13 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
14 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
15 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="CN" owner="CL" desc="support for namespace prefixes" status="accepted" version="$Revision: 1.13 $" testname="$RCSfile: struct-frag-05-t.svg,v $">
16 <OperatorScript>
17 <Paragraph>This tests that XML Namespaces are correctly implemented, in that the tuple
18 of local name and namespace URI, rather than the prefix, is important. The first subtest is a
19 group where the namespace prefix s is bound to the SVG namespace and an s:circle is drawn
20 in pale yellow. The same group declares the default namespace to be a non-SVG naespace; the
21 blue circle element in that namespace must not be drawn.
22 </Paragraph>
23 <Paragraph>The second subtest puts the namespace declarations on the elements themselves. The
24 prefix toto is bound to the SVG namespace and the XLink namespace is made the default namespace.
25 Thus, the blue &lt;toto:a href="uri">Valid&lt;/toto:a> is a valid link and must be traversable. Select this link,
26 then go back to the test.
27 </Paragraph>
28 <Paragraph>
29 The third subtest has no prefix on the element name 'a' and uses the usual xlink: prefix on the href
30 attribute. However, both the default namespace and the namespace bound to the xlink prefix are
31 dummy namespaces. Not only should the link not be traversable, it must not even display at all.
32 If the text 'Invalid' is displayed, the test fails.
33 </Paragraph>
34 </OperatorScript>
35 </SVGTestCase>
36 <title id="test-title">$RCSfile: struct-frag-05-t.svg,v $</title>
37 <!--======================================================================-->
38 <!--Content of Test Case follows... =====================-->
39 <!--======================================================================-->
40 <g id="test-body-content">
41 <g xmlns:s="http://www.w3.org/2000/svg" xmlns="http://www.example.org/notsvg">
42 <s:circle cx="240" cy="180" r="120" fill="#FF6"/>
43 <circle cx="240" cy="180" r="140" fill="#369"/>
44 </g>
45 <text x="240" y="100" text-anchor="middle" font-size="40" fill="#369">
46 <toto:a dahut:href="resources/linkingToc-t.svg" xmlns:toto="http://www.w3.org/2000/svg"
47 xmlns:dahut="http://www.w3.org/1999/xlink">Valid</toto:a>
48 </text>
49 <text x="240" y="250" text-anchor="middle" font-size="40" fill="#C33">
50 <a xlink:href="resources/linkingToc-t.svg" xmlns="http://example.org/notsvg"
51 xmlns:xlink="http://example.org/notxlink">Invalid</a>
52 </text>
53 </g>
54 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.13 $</text>
55 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
56 </svg>