blob: 8e09b89b379ae3d4ed45e446fbe6c1433629f2e5 [file] [log] [blame]
<?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-image-07-t.svg -->
<!-- -->
<!-- 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">
<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/" reviewed="yes" reviewer="CN" owner="VH" desc="image support for xml:base" status="accepted" version="$Revision: 1.9 $" testname="$RCSfile: struct-image-07-t.svg,v $">
<OperatorScript>
<Paragraph>
This test validates that xml:base is properly handled
on the &lt;image&gt; element. It shows the same image
three times, with different xml:base and xlink:href
values.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">struct-image-07-t.svg</title>
<desc id="test-desc">Tests proper handling of preserveAspectRatio
attributes on the &lt;image&gt; element</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content" transform="translate(10,0)">
<!-- Default, base is the document URI -->
<g transform="translate(40, 100)">
<text x="50" y="-30" text-anchor="middle" font-size="24">no</text>
<text x="50" text-anchor="middle" font-size="24">xml:base</text>
<image xlink:href="resources/smiley.png" x="0" y="20" width="100" height="100"/>
</g>
<!-- xml:base on image -->
<g transform="translate(180, 100)">
<text x="50" y="-30" text-anchor="middle" font-size="24">xml:base</text>
<text x="50" text-anchor="middle" font-size="24">on image</text>
<image xml:base="resources/" xlink:href="smiley.png" x="0" y="20" width="100" height="100"/>
</g>
<!-- xml:base on group -->
<g transform="translate(320, 100)" xml:base="resources/">
<text x="50" y="-30" text-anchor="middle" font-size="24">xml:base</text>
<text x="50" text-anchor="middle" font-size="24">on parent</text>
<image xlink:href="smiley.png" x="0" y="20" width="100" height="100"/>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.9 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>