Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1-SE / text-intro-09-b.svg
blob3bd9ca42030ea230b3abadb9b83ca08fba848432
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.6 $" testname="$RCSfile: text-intro-09-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. Test of bidi algorithms and support of 'unicode-bidi' and
25 'direction' properties. Uses Webfonts.
26 </p>
27 <p>
28 This test uses Webfonts; both SVG and WOFF fonts are provided.
29 </p>
30 </d:testDescription>
31 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 Run the test. No interaction required. Make sure scripting is enabled.
34 </p>
35 </d:operatorScript>
36 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
37 <p>
38 The test is passed if the correct characters
39 appear and they appear in the correct order and orientation.
40 Ensure that the three lines with Hebrew are ordered
41 correctly, as shown in the reference image.
42 </p>
43 </d:passCriteria>
44 </d:SVGTestCase>
45 <title id="test-title">$RCSfile: text-intro-09-b.svg,v $</title>
46 <defs>
47 <style type="text/css">
48 @font-face {
49 font-family: Ezra SIL SR;
50 src: url(woffs/EzraSILSR.woff) format("woff");
52 </style>
53 </defs>
54 <g id="test-body-content" font-family="sans-serif" font-size="18">
55 <text font-family="Arial" font-size="17" fill="blue" x="10" y="40">unicode-bidi="bidi-override" direction="ltr".</text>
56 <g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif">
57 <text x="10" y="80" unicode-bidi="bidi-override" direction="ltr">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
58 </g>
59 <text font-family="Arial" font-size="17" fill="blue" x="10" y="140">unicode-bidi="bidi-override" direction="rtl".</text>
60 <g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif">
61 <text x="10" y="180" unicode-bidi="bidi-override" direction="rtl" text-anchor="end">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
62 </g>
63 <text font-family="Arial" font-size="17" fill="blue" x="10" y="240">unicode-bidi="normal" direction="rtl".</text>
64 <g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif">
65 <!-- FIXME: We added text-anchor="end" here, the tests was wrong as-is. Already reported to SVG WG, will be fixed soon. -->
66 <text x="10" y="280" unicode-bidi="normal" direction="rtl" text-anchor="end">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
67 </g>
68 </g>
69 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
70 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
71 </g>
72 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
73 <script>
74 document.documentElement.offsetLeft;
75 </script>
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>