Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / text-selection-align-03-b.svg
blobc646042241607a28e9ba967a337f0a68795bf458
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
4 <!--======================================================================-->
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, Institut National de Recherche en =-->
7 <!--= Informatique et en Automatique, Keio University). All Rights =-->
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================-->
10 <!-- ===================================================================== -->
11 <!-- -->
12 <!-- text-textAnchor-BE-05.svg -->
13 <!-- renamed for 1.1 suite to text-align-02-f.svg -->
14 <!-- renamed and split for svgt/b to text-align-03-b.svg -->
15 <!-- -->
16 <!-- Test viewer basic capability to handle 'text-anchor' property. -->
17 <!-- -->
18 <!-- Author : Lofton Henderson, 05-aug-2000. -->
19 <!-- 1.1 revision by Vincent Hardy -->
20 <!-- Revised for svgt/b: Ola Andersson Jun/26/2002 -->
21 <!-- -->
22 <!-- History: -->
23 <!-- 05-aug-2000, LH: Serial#1 created. -->
24 <!-- 23-aug-2000, LH=" add test-body-content 'g'" ser#2 -->
25 <!-- -->
26 <!-- ===================================================================== -->
27 <!--======================================================================-->
28 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
29 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
30 <!--======================================================================-->
31 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" version="1.1" baseProfile="basic">
32 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
33 <!--nav data here-->
34 <OperatorScript version="$Revision: 1.5 $" testname="text-align-03-b.svg">
35 <Paragraph>
36 Test for viewer capibility to handle the basics of the 'textAnchor'
37 alignment property for 'text' and related elements.
38 </Paragraph>
39 <Paragraph>
40 This test verify that
41 the interpreter correctly handles and applies the text-anchor
42 properties when present on "chunks", which are comprised of tspan elements
43 with absolute positioning, within the containing 'text' element.
44 </Paragraph>
45 <Paragraph>
46 The rendered picture should match the reference image, except for
47 possible variations in the text fonts and layout (per CSS2 rules).
48 </Paragraph>
50 </OperatorScript>
51 </SVGTestCase>
53 <title id="test-title">text-align-03-b</title>
54 <desc id="test-desc">Test viewer basic capability to handle 'text-anchor' property.</desc>
55 <!--======================================================================-->
56 <!--Content of Test Case follows... =====================-->
57 <!--======================================================================-->
58 <g id="test-body-content">
59 <text x="5" y="40" font-family="Arial" font-size="40" fill="black" >Test of 'text-anchor'</text>
61 <!-- Test cases -->
62 <line x1="225" y1="75" x2="225" y2="225" stroke="red" />
63 <g font-family="Arial" font-size="30" fill="blue" >
64 <text x="225" y="110" text-anchor="end" >Begin with "end",<tspan x="225" y="160" xml:space="preserve" text-anchor="middle" > switch to "middle" in a tspan, </tspan><tspan x="225" y="210" text-anchor="start" >and "start" ends it.</tspan></text>
65 </g>
66 </g>
67 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
68 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
69 <script>
70 if (window.testRunner)
71 window.testRunner.dumpSelectionRect();
72 var range = document.createRange();
73 range.selectNode(window.document.documentElement);
74 var selection = window.getSelection();
75 selection.removeAllRanges();
76 selection.addRange(range);
77 </script>
78 </svg>