chromium/third_party/blink/web_tests/svg/W3C-SVG-1.1/struct-use-03-t.svg

<?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-use-03-t.svg                                                  -->
<!--                                                                      -->
<!-- Author : Vincent Hardy,  21-May-2003                                 --><!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="0 0 480 360">
    <SVGTestCase
        xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/"
        xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"
        owner="VH" reviewer="CN" desc="tests x/y attribs on use element"
        status="accepted" version="$Revision: 1.7 $" testname="$RCSfile: struct-use-03-t.svg,v $">
		<OperatorScript>
			<Paragraph>
				The purpose of this test is to validate proper handling of
                                the x/y attributes on the use element.
			</Paragraph>
                        <Paragraph>
                                The test shows a &lt;use&gt; element displayed on the right.
                                On the left, a group built as described in section 
                                5.6 of the SVG 1.1 specification validates that the 
                                &lt;use element is properly processed.
                        </Paragraph>
        </OperatorScript>
    </SVGTestCase>
    <title id="test-title">struct-use-03-t.svg</title>
    <desc id="test-desc">Tests proper handling of x/y/width/height 
                         attributes on the &lt;use&gt; element</desc>

    <!--======================================================================-->
    <!--Content of Test Case follows...                  =====================-->
    <!--======================================================================-->
    <g id="test-body-content">
        <defs>
            <rect id="usedRect" width="100" height="100" fill="rgb(250,220,0)" stroke="rgb(200,40,40)" stroke-width="20"/>
        </defs>

        <text x="120" y="60" text-anchor="middle">Reference</text>

        <text x="360" y="60" text-anchor="middle">&lt;use&gt;</text>

        <!-- This group is constructed as described in section 5.6 of the -->
        <!-- SVG 1.1 Specification.                                       -->
        <g id="reference" transform="rotate(45,120,170) translate(70,120)">
            <rect width="100" height="100" fill="rgb(250,220,0)" stroke="rgb(200,40,40)" stroke-width="20"/>
        </g>

        <g transform="translate(240, 0)">
            <use xlink:href="#usedRect" x="70" y="120" transform="rotate(45,120,170)"/>
        </g>
    </g>

    <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text>
    <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>

</svg>