84 lines
5.0 KiB
XML
84 lines
5.0 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
|
||
|
|
||
|
<!--======================================================================-->
|
||
|
<!--= 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/. =-->
|
||
|
<!--======================================================================-->
|
||
|
<!-- ===================================================================== -->
|
||
|
<!-- -->
|
||
|
<!-- coords-transforms-BE-02.svg -->
|
||
|
<!-- Author : Vincent Hardy -->
|
||
|
<!-- renamed for 1.1 suite to coords-trans-06-t.svg -->
|
||
|
<!-- Modified for svg 1.1 by Ola Andersson, 07-Mar-2002 -->
|
||
|
<!-- -->
|
||
|
<!-- History: -->
|
||
|
<!-- 24-Feb-2000, VH: created -->
|
||
|
<!-- 27-Feb-2000, LH: minor adjustments to TC name, ser#3. -->
|
||
|
<!-- 02-Mar-2000, LH: fix names, legend, ser#4. -->
|
||
|
<!-- 09-Mar-2000, LH: fix framing rect, ser#5. -->
|
||
|
<!-- 30-Apr-2000, VH=" fix stroke properties bug" ser#5. -->
|
||
|
<!-- 12-May-2000, LH: rmv text-anchor and integrate, ser#6. -->
|
||
|
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
|
||
|
<!-- 16-Aug-2000, LH="rename" ser#7. -->
|
||
|
<!-- -->
|
||
|
<!-- ===================================================================== -->
|
||
|
<!--======================================================================-->
|
||
|
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
|
||
|
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
|
||
|
<!--======================================================================-->
|
||
|
<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">
|
||
|
|
||
|
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
|
||
|
<OperatorScript version="$Revision: 1.5 $" testname="coords-trans-01-t-e.svg">
|
||
|
<Paragraph>
|
||
|
This test verifies the implementation of transforms. It tests elementary transforms
|
||
|
and transform nesting.
|
||
|
Note that for layout purposes, this test uses nesting of translation with the elementary transforms.
|
||
|
</Paragraph>
|
||
|
<Paragraph>
|
||
|
The rendered picture should match the reference image exactly except for variations in the labeling text.
|
||
|
</Paragraph>
|
||
|
<Paragraph>
|
||
|
The test uses the rect element, the fill color (solid primary colors) and transforms.
|
||
|
</Paragraph>
|
||
|
</OperatorScript>
|
||
|
</SVGTestCase>
|
||
|
|
||
|
<title id="test-title">coords-trans-06-t</title>
|
||
|
<desc id="test-desc">Validates elementary transforms and transformation nesting</desc>
|
||
|
<!--======================================================================-->
|
||
|
<!--Content of Test Case follows... =====================-->
|
||
|
<!--======================================================================-->
|
||
|
<g id="test-body-content" transform="translate(0, 30)">
|
||
|
<g id="nested-transforms-test">
|
||
|
<g id="nested-transforms">
|
||
|
<!-- scale/translate in successive elements -->
|
||
|
<g transform="translate(-102, -450)">
|
||
|
<g transform="scale(7.5, 5)">
|
||
|
<g transform="translate(16.666667, 105)">
|
||
|
<rect x="0" y="0" width="20" height="1" fill="blue" />
|
||
|
<rect x="0" y="0" width="0.67" height="20" fill="red" />
|
||
|
</g>
|
||
|
</g>
|
||
|
</g>
|
||
|
</g>
|
||
|
<!-- nested-transforms -->
|
||
|
<g id="nested-transforms-test-markers" transform="translate(-600, -450) scale(2.5, 2.5)">
|
||
|
<!-- scale then translate -->
|
||
|
<text x="240" y="200">scale(25, 95) then translate(2, 2)</text>
|
||
|
<rect x="248" y="208" width="5" height="5" fill="black" />
|
||
|
<rect x="308" y="208" width="5" height="5" fill="blue" />
|
||
|
<rect x="248" y="248" width="5" height="5" fill="red" />
|
||
|
</g>
|
||
|
<!-- nested-transforms-test-markers -->
|
||
|
</g>
|
||
|
<!-- nested-transforms test -->
|
||
|
</g>
|
||
|
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
|
||
|
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
||
|
</svg>
|
||
|
|