Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / render-elems-06-t.svg
blob27a128d6237ad1a3e5994cac30536e2cd346f608
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">
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 <!-- rendering-text-BE-02.svg -->
13 <!-- renamed for 1.1 suite to render-elems-06-t.svg -->
14 <!-- -->
15 <!-- This test validates that text can be both filled and stroked. -->
16 <!-- -->
17 <!-- Author : Vincent Hardy, 29-Feb-2000 -->
18 <!-- Revised for 1.1 : Phil Armstrong Feb/11/2002 -->
19 <!-- -->
20 <!-- History: -->
21 <!-- 29-Feb-2000, VH: Created. Matches 20000302 SVG spec. -->
22 <!-- 11-Mar-2000, LH=" fixed names, focus, ids, framing rect" removed -->
23 <!-- ineffective "text-anchor="middle"" ser#3 -->
24 <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
25 <!-- 16-Aug-2000, LH: renaming, ser#4. -->
26 <!-- -->
27 <!-- ===================================================================== -->
28 <!--======================================================================-->
29 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
30 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
31 <!--======================================================================-->
32 <svg id="svg-root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 480 360" version="1.1" baseProfile="tiny">
33 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
34 <OperatorScript version="$Revision: 1.4 $" testname="render-elems-06-t.svg">
35 <Paragraph>
36 Verifies that text can be filled. The
37 test shows two 'A' characters that are filled and not stroked.
38 </Paragraph>
39 <Paragraph>
40 The rendered image should match the reference image except for the text which may
41 show minor layout differences.
42 </Paragraph>
43 </OperatorScript>
44 </SVGTestCase>
45 <title id="test-title">render-elems-06-t</title>
46 <desc id="test-desc">This test validates that text can be both filled.</desc>
47 <defs >
48 <font id="MyFont" horiz-adv-x="416" >
49 <font-face font-family="MyFont"
50 units-per-em="1000"
51 panose-1="2 0 0 6 3 0 0 2 0 4"
52 ascent="700"
53 descent="-127"/>
54 <missing-glyph horiz-adv-x="500"/>
55 <glyph unicode="A" glyph-name="A" horiz-adv-x="505" d="M73 700L5 0H155L170 165H335L350 0H500L432 700H73ZM183 315L205 550H300L322 315H183Z" />
56 <glyph unicode="B" glyph-name="B" horiz-adv-x="550" d="M40 700V0H510V280L423 350L510 420V700H40ZM360 550V471L306 420H190V550H360ZM190 280H306L360 229V150H190V280Z" />
57 </font>
58 </defs>
59 <!--======================================================================-->
60 <!--Content of Test Case follows... =====================-->
61 <!--======================================================================-->
62 <g id="test-body-content" >
63 <!-- ====================================================================== -->
64 <!-- First, fill text with two different colors -->
65 <!-- ====================================================================== -->
66 <text x="180" y="40" font-size="30" >Text fill</text>
67 <g font-size="300" font-family="MyFont">
68 <text x="60" y="280" fill="red" >A</text>
69 <text x="260" y="280" fill="navy" >A</text>
70 </g>
71 </g>
72 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.4 $</text>
73 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
74 </svg>