<?xml version="1.0" encoding="UTF-8"?>
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- -->
<!-- struct-svg-02-t -->
<!-- -->
<!-- Author : Vincent Hardy 23/09/03 -->
<!-- -->
<!-- History: -->
<!-- 23-sep-2003, VH created -->
<!-- --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<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">
<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 $">
<OperatorScript>
<Paragraph>
This test validates the use of the preserveAspectRatio attribute on the
root svg element in an SVG Tiny document. In this document, preserveAspectRatio
is set to 'xMidYMid meet' and the width and height of the document set to 100%.
</Paragraph>
<Paragraph>
The document's viewBox is defined to be 100 by 100 with an origin
in (100, 100). The content is made of 2 red squares and 2
orange circles.
</Paragraph>
<Paragraph>
Because preserveAspectRatio is set to 'xMidYMid meet', the content should
appear centered within the viewport: squares show as squares (and not
rectangles) and circles show as circles (and not ellipses).
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">$RCSfile: struct-frag-03-t.svg,v $</title>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<rect x="100" y="100" width="50" height="50" fill="rgb(220, 20, 60)"/>
<rect x="150" y="150" width="50" height="50" fill="rgb(220, 20, 60)"/>
<circle cx="125" cy="175" r="25" fill="rgb(255, 215, 0)"/>
<circle cx="175" cy="125" r="25" fill="rgb(255, 215, 0)"/>
</g>
<text id="revision" x="105" y="195" font-size="10" stroke="none" fill="black">$Revision: 1.8 $</text>
<rect id="test-frame" x="100" y="100" width="100" height="100" fill="none" stroke="#000"/>
</svg>