Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1-SE / text-intro-02-b.svg
blobf72682d365030b2cb447c1a70ed5b3d5e7d20f9a
1 <svg version="1.1" baseProfile="basic" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="SVGWG" author="Jon Ferraiolo" status="accepted"
15 version="$Revision: 1.9 $" testname="$RCSfile: text-intro-02-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#Introduction">
17 <p>
18 Test various aspects of internationalized text, including
19 left-to-right, right-to-left, and the
20 following properties: 'writing-mode',
21 'direction' and 'unicode-bidi'.
22 </p>
23 <p>
24 Various text strings in various languages appear. Ttest of bidi algorithms and support of 'unicode-bidi' and
25 'direction' properties.
26 </p>
27 </d:testDescription>
28 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
29 <p>
30 This test requires installation of a system font that supports
31 the various international characters used in this test case. A
32 suitable font should be used by the SVG renderer if none of the
33 specified font families are available (or if they are available but do
34 not have the required glyphs).
35 </p>
36 <p>
37 Run the test. No interaction required.
38 </p>
39 </d:operatorScript>
40 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
41 <p>
42 The test is passed if the correct characters
43 appear and they appear in the correct order and orientation.
44 Ensure that the three lines with Hebrew are ordered
45 correctly, as shown in the reference image.
46 </p>
47 </d:passCriteria>
48 </d:SVGTestCase>
49 <title id="test-title">$RCSfile: text-intro-02-b.svg,v $</title>
50 <defs>
51 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
52 <font-face-src>
53 <font-face-uri xlink:href="../custom/resources/SVGFreeSans.svg#ascii"/>
54 </font-face-src>
55 </font-face>
56 </defs>
57 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
58 <text font-family="Arial" font-size="17" fill="blue" x="10" y="40">unicode-bidi="bidi-override" direction="ltr".</text>
59 <g font-size="18" font-family="'Arial Unicode MS', 'LucidaSansUnicode','MS-Gothic'">
60 <text x="10" y="80" unicode-bidi="bidi-override" direction="ltr">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
61 </g>
62 <text font-family="Arial" font-size="17" fill="blue" x="10" y="140">unicode-bidi="bidi-override" direction="rtl".</text>
63 <g font-size="18" font-family="'Arial Unicode MS', 'LucidaSansUnicode','MS-Gothic'">
64 <text x="10" y="180" unicode-bidi="bidi-override" direction="rtl" text-anchor="end">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
65 </g>
66 <text font-family="Arial" font-size="17" fill="blue" x="10" y="240">unicode-bidi="normal" direction="rtl".</text>
67 <g font-size="18" font-family="'Arial Unicode MS', 'LucidaSansUnicode','MS-Gothic'">
68 <!-- FIXME: We added text-anchor="end" here, the tests was wrong as-is. Already reported to SVG WG, will be fixed soon. -->
69 <text x="10" y="280" unicode-bidi="normal" direction="rtl" text-anchor="end" >Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
70 </g>
71 </g>
72 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
73 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
74 </g>
75 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
76 <!-- comment out this watermark once the test is approved -->
77 <!--<g id="draft-watermark">
78 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
79 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
80 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
81 </g>-->
82 </svg>