Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / text-tselect-01-b.svg
blobc14729bfb2cf04328dfe0088299a2890bff7f7d0
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">
3 <!--======================================================================-->
4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
5 <!--= Institute of Technology, Institut National de Recherche en =-->
6 <!--= Informatique et en Automatique, Keio University). All Rights =-->
7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <!-- ===================================================================== -->
10 <!-- -->
11 <!-- text-selection-BE-13.svg -->
12 <!-- renamed for 1.1 suite to text-tselect-01-b.svg -->
13 <!-- -->
14 <!-- Test single line and multiline text selection. -->
15 <!-- -->
16 <!-- Author : Jon Ferraiolo 06-Aug-2000 -->
17 <!-- 1.1 revision by Rick Graham -->
18 <!-- -->
19 <!-- History: -->
20 <!-- 06-Aug-2000, JF: Serial#1 created. -->
21 <!-- -->
22 <!-- ===================================================================== -->
23 <!--======================================================================-->
24 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
25 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
26 <!--======================================================================-->
27 <svg version="1.1" baseProfile="basic" 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">
28 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
29 <OperatorScript version="$Revision: 1.8 $" testname="text-tselect-01-b.svg">
30 <Paragraph>
31 Test text selection.
32 </Paragraph>
33 <Paragraph>
34 As the text describes, text selection should be constrained within
35 a single line of text for the first four lines. But in the second
36 four lines, text selection should span across lines. Thus, it should
37 be possible to start text selection at the start of the "However"
38 and drag through the end of "same time." and the all four lines
39 should be selected.
40 </Paragraph>
41 <Paragraph>
42 For basic viewers conformant acion is as described above if there
43 is a text selection mechanism. Since text selection is optional
44 on a basic device if text selection is not implemented then this
45 test is a pass, move on to the next test.
46 </Paragraph>
47 </OperatorScript>
48 </SVGTestCase>
49 <title id="test-title">text-tselect-01-b.svg</title>
50 <desc id="test-desc">Test single line and multiline text selection.</desc>
51 <!--======================================================================-->
52 <!--Content of Test Case follows... =====================-->
53 <!--======================================================================-->
54 <g id="test-body-content">
55 <text font-family="Arial" font-size="16" x="10" y="20">Test single line and multiline text selection.</text>
56 <g font-family="Arial" font-size="16" >
57 <text x="25" y="65">Here is a stand-alone 'text' element.</text>
58 <text x="25" y="90">Here is a second 'text' element just below.</text>
59 <text x="25" y="115">Because these are four separate 'text' elements,</text>
60 <text x="25" y="140">text selection should not go across lines here.</text>
61 <text>
62 <tspan x="25" y="190">However, these lines of text are achieved by using</tspan>
63 <tspan x="25" y="215">one 'tspan' per line, all contained within the same</tspan>
64 <tspan x="25" y="240">'text' element, so you should be able to select all</tspan>
65 <tspan x="25" y="265">four lines at the same time.</tspan>
66 </text>
67 </g>
68 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
69 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
70 </g>
71 </svg>