Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / text-fonts-02-t.svg
blob30d867f6564c647ea8e19fa3527db25328c99884
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.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-font-BE-16.svg -->
12 <!-- renamed for 1.1 suite to text-fonts-02-t.svg -->
13 <!-- -->
14 <!-- Author : Chris lilley, 01-Mar-2000 -->
15 <!-- 1.1 revision by Rick Graham -->
16 <!-- Revised for SVGT/B : Mathias Larsson Carlander Jul/1/2002 -->
17 <!-- further revised Chris Lilley 23 Oct 2002 -->
18 <!--======================================================================-->
19 <svg version="1.1" baseProfile="tiny" 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">
20 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
21 <OperatorScript version="$Revision: 1.7 $" testname="text-fonts-02-t.svg">
22 <Paragraph>
23 Purpose of test is to determine if the font weight is being
24 correctly rendered. A number of font families are specified. The
25 numerical weight values (100 to 900) should show the lighter weights
26 on the lower numbers and the heavier weights on the larger numbers.
27 Heavier is defined to mean 'no lighter'.
28 </Paragraph>
29 <Paragraph>
30 If only one font weight is available, they should all display at the
31 same weight. The transition from black to green figures shows the
32 correct light to bold transition for the common case where two
33 weights are available. If three or more weights are available, see
34 the CSS2 specification for how these are allocated to the nine
35 weight numbers.
36 </Paragraph>
37 <Paragraph>
38 The absolute keywords 'normal' and bold' are tested
39 by the first two lines on the right hand side of the test,
40 the third line of text tests the to 'bolder'
41 relative keyword and the fourth tests the
42 'lighter' relative keyword.
43 </Paragraph>
44 </OperatorScript>
45 </SVGTestCase>
46 <title id="test-title">text-fonts-02-t.svg</title>
47 <desc id="test-desc">
48 Test that viewer has the basic capability to handle different font weights </desc>
49 <!--======================================================================-->
50 <!--Content of Test Case follows... =====================-->
51 <!--======================================================================-->
52 <g id="test-body-content" font-family="Georgia, 'Times New Roman', Times, 'MS Mincho', serif" font-size="30">
53 <text font-weight="100" x="360" y="50">100</text>
54 <text font-weight="200" x="360" y="85">200</text>
55 <text font-weight="300" x="360" y="120">300</text>
56 <text font-weight="400" x="360" y="155">400</text>
57 <text font-weight="500" x="360" y="190">500</text>
58 <text fill="green" font-weight="600" x="360" y="225">600</text>
59 <text fill="green" font-weight="700" x="360" y="260">700</text>
60 <text fill="green" font-weight="800" x="360" y="295">800</text>
61 <text fill="green" font-weight="900" x="360" y="330">900</text>
62 <text font-weight="bold" x="60" y="80">This is bold</text>
63 <text font-weight="normal" x="60" y="130">This is normal</text>
64 <g font-weight="normal" fill="blue">
65 <text font-weight="bolder" x="60" y="180">Blue is bolder</text>
66 </g>
67 <g font-weight="bold" fill="blue">
68 <text font-weight="lighter" x="60" y="230">Blue is lighter</text>
69 </g>
70 </g>
71 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text>
72 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
73 </svg>