| OLD | NEW |
| (Empty) |
| 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-image-07-t.svg --> | |
| 11 <!-- --> | |
| 12 <!-- Author : Vincent Hardy, 16-Oct-2003 --><!D
OCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG
/1.1/DTD/svg11-tiny.dtd"> | |
| 13 | |
| 14 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" vie
wBox="0 0 480 360"> | |
| 15 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/descrip
tion/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewed="ye
s" reviewer="CN" owner="VH" desc="image support for xml:base" status="accepted"
version="$Revision: 1.9 $" testname="$RCSfile: struct-image-07-t.svg,v $"> | |
| 16 <OperatorScript> | |
| 17 <Paragraph> | |
| 18 This test validates that xml:base is properly handle
d | |
| 19 on the <image> element. It shows the same imag
e | |
| 20 three times, with different xml:base and xlink:href | |
| 21 values. | |
| 22 </Paragraph> | |
| 23 </OperatorScript> | |
| 24 </SVGTestCase> | |
| 25 | |
| 26 <title id="test-title">struct-image-07-t.svg</title> | |
| 27 <desc id="test-desc">Tests proper handling of preserveAspectRatio | |
| 28 attributes on the <image> element</desc> | |
| 29 | |
| 30 <!--======================================================================--
> | |
| 31 <!--Content of Test Case follows... =====================--
> | |
| 32 <!--======================================================================--
> | |
| 33 <g id="test-body-content" transform="translate(10,0)"> | |
| 34 <!-- Default, base is the document URI --> | |
| 35 <g transform="translate(40, 100)"> | |
| 36 <text x="50" y="-30" text-anchor="middle" font-size="24">no</text> | |
| 37 <text x="50" text-anchor="middle" font-size="24">xml:base</text> | |
| 38 <image xlink:href="resources/smiley.png" x="0" y="20" width="100" he
ight="100"/> | |
| 39 </g> | |
| 40 | |
| 41 <!-- xml:base on image --> | |
| 42 <g transform="translate(180, 100)"> | |
| 43 <text x="50" y="-30" text-anchor="middle" font-size="24">xml:base</t
ext> | |
| 44 <text x="50" text-anchor="middle" font-size="24">on image</text> | |
| 45 <image xml:base="resources/" xlink:href="smiley.png" x="0" y="20" wi
dth="100" height="100"/> | |
| 46 </g> | |
| 47 | |
| 48 <!-- xml:base on group --> | |
| 49 <g transform="translate(320, 100)" xml:base="resources/"> | |
| 50 <text x="50" y="-30" text-anchor="middle" font-size="24">xml:base</t
ext> | |
| 51 <text x="50" text-anchor="middle" font-size="24">on parent</text> | |
| 52 <image xlink:href="smiley.png" x="0" y="20" width="100" height="100"
/> | |
| 53 </g> | |
| 54 | |
| 55 </g> | |
| 56 | |
| 57 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black"
>$Revision: 1.9 $</text> | |
| 58 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" strok
e="#000000"/> | |
| 59 | |
| 60 </svg> | |
| OLD | NEW |