Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / struct-image-06-t.svg
blob8ea76d72947abb39d86679b9263afabe108087a8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--======================================================================-->
3 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
4 <!--= Institute of Technology, Institut National de Recherche en =-->
5 <!--= Informatique et en Automatique, Keio University). All Rights =-->
6 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
7 <!--======================================================================-->
8 <!-- =====================================================================-->
9 <!-- -->
10 <!-- struct-image-06-t.svg -->
11 <!-- -->
12 <!-- Author : Vincent Hardy, 16-Oct-2003 --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
14 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
15 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewed="yes" reviewer="CN" owner="VH" desc="image preserveAspectRatio" status="accepted" issue="ISSUE-222" version="$Revision: 1.11 $" testname="$RCSfile: struct-image-06-t.svg,v $">
16 <OperatorScript>
17 <Paragraph>
18 Check that all the preserveAspectRatio values are supported
19 for the &lt;image&gt; element. In particular, check that
20 values which are not supported on the svg element's
21 preserveAspectRatio are supported for &lt;image&gt;.
22 </Paragraph>
23 </OperatorScript>
24 </SVGTestCase>
25 <title id="test-title">struct-image-06-t.svg</title>
26 <desc id="test-desc">Tests proper handling of preserveAspectRatio
27 attributes on the &lt;image&gt; element</desc>
29 <!--======================================================================-->
30 <!--Content of Test Case follows... =====================-->
31 <!--======================================================================-->
32 <g id="test-body-content">
33 <g font-size="9">
34 <desc>Example PreserveAspectRatio - demonstrate available options</desc>
35 <text x="10" y="30">SVG to fit</text>
36 <g transform="translate(20,40)">
37 <image xlink:href="resources/smiley.png" width="50" height="50"/>
38 </g>
39 <text x="10" y="110">Viewport 1</text>
40 <g transform="translate(10,120)">
41 <rect x=".5" y=".5" width="49" height="29" fill="none" stroke="blue"/>
42 </g>
43 <text x="10" y="180">Viewport 2</text>
44 <g transform="translate(20,190)">
45 <rect x=".5" y=".5" width="29" height="59" fill="none" stroke="blue"/>
46 </g>
47 <g id="meet-group-1" transform="translate(100, 50)">
48 <text x="0" y="-20">---------- meet ----------</text>
49 <g transform="translate(30,0)">
50 <text y="-5">xMid*</text>
51 <rect x=".5" y=".5" width="49" height="29" fill="none" stroke="blue"/>
52 <image xlink:href="resources/smiley.png" preserveAspectRatio="xMidYMid meet" width="50" height="30"/>
53 </g>
54 </g>
55 <g id="meet-group-2" transform="translate(230, 50)">
56 <text x="0" y="-20">---------- meet ----------</text>
57 <g transform="translate(30, 0)">
58 <text y="-5">*YMid</text>
59 <rect x=".5" y=".5" width="29" height="59" fill="none" stroke="blue"/>
60 <image xlink:href="resources/smiley.png" preserveAspectRatio="xMidYMid meet" width="30" height="60"/>
61 </g>
62 </g>
63 <g id="meet-group-3" transform="translate(350, 50)">
64 <text x="0" y="-20">---------- meet ----------</text>
65 <g transform="translate(30, 0)">
66 <text y="-5">*none</text>
67 <rect x=".5" y=".5" width="29" height="59" fill="none" stroke="blue"/>
68 <image xlink:href="resources/smiley.png" preserveAspectRatio="none" width="30" height="60"/>
69 </g>
70 </g>
71 </g>
72 </g>
74 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.11 $</text>
75 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
77 </svg>