Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / struct-frag-03-t.svg
blob5883e62aac2dbf55f40f7b2a8d19d1ca99e1742a
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-svg-02-t -->
11 <!-- -->
12 <!-- Author : Vincent Hardy 23/09/03 -->
13 <!-- -->
14 <!-- History: -->
15 <!-- 23-sep-2003, VH created -->
16 <!-- --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
18 <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="100 100 100 100" preserveAspectRatio="xMidYMid meet">
19 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewed="no" reviewer="CN" owner="VH" desc="validates the use of the preserveAspectRatio" status="accepted" version="$Revision: 1.8 $" testname="$RCSfile: struct-frag-03-t.svg,v $">
20 <OperatorScript>
21 <Paragraph>
22 This test validates the use of the preserveAspectRatio attribute on the
23 root svg element in an SVG Tiny document. In this document, preserveAspectRatio
24 is set to 'xMidYMid meet' and the width and height of the document set to 100%.
25 </Paragraph>
26 <Paragraph>
27 The document's viewBox is defined to be 100 by 100 with an origin
28 in (100, 100). The content is made of 2 red squares and 2
29 orange circles.
30 </Paragraph>
31 <Paragraph>
32 Because preserveAspectRatio is set to 'xMidYMid meet', the content should
33 appear centered within the viewport: squares show as squares (and not
34 rectangles) and circles show as circles (and not ellipses).
35 </Paragraph>
36 </OperatorScript>
37 </SVGTestCase>
39 <title id="test-title">$RCSfile: struct-frag-03-t.svg,v $</title>
40 <!--======================================================================-->
41 <!--Content of Test Case follows... =====================-->
42 <!--======================================================================-->
43 <g id="test-body-content">
44 <rect x="100" y="100" width="50" height="50" fill="rgb(220, 20, 60)"/>
45 <rect x="150" y="150" width="50" height="50" fill="rgb(220, 20, 60)"/>
47 <circle cx="125" cy="175" r="25" fill="rgb(255, 215, 0)"/>
48 <circle cx="175" cy="125" r="25" fill="rgb(255, 215, 0)"/>
49 </g>
51 <text id="revision" x="105" y="195" font-size="10" stroke="none" fill="black">$Revision: 1.8 $</text>
52 <rect id="test-frame" x="100" y="100" width="100" height="100" fill="none" stroke="#000"/>
54 </svg>