interact-events-01-b-isvalid.html (4228B)
1 <!DOCTYPE html> 2 <html lang='en'> 3 <head> 4 <title>interact-events-01-b-manual.svg</title> 5 <meta charset='utf-8'> 6 </head> 7 <body> 8 <h1>Source SVG: interact-events-01-b-manual.svg</h1> 9 <svg version="1.1" baseProfile="basic" onload="onEvent(evt, 'Rect6', 'visible')" id="svg-root" 10 width="100%" height="100%" viewBox="0 0 480 360" 11 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 12 <!--======================================================================--> 13 <!--= SVG 1.1 2nd Edition Test Case =--> 14 <!--======================================================================--> 15 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> 16 <!--= Institute of Technology, European Research Consortium for =--> 17 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> 18 <!--= All Rights Reserved. =--> 19 <!--= See http://www.w3.org/Consortium/Legal/. =--> 20 <!--======================================================================--> 21 22 <title id="test-title">$RCSfile: interact-events-01-b.svg,v $</title> 23 <defs> 24 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> 25 <font-face-src> 26 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> 27 </font-face-src> 28 </font-face> 29 </defs> 30 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> 31 <defs> 32 <script type="text/ecmascript"><![CDATA[ 33 34 function onEvent(evt, indicatorId, visibilityValue){ 35 // Get Document 36 var target = evt.target; 37 var doc = target.ownerDocument; 38 39 // Mark test as passed 40 var elementToShow = doc.getElementById(indicatorId); 41 elementToShow.setAttribute('visibility', '' + visibilityValue); 42 } 43 44 ]]></script> 45 </defs> 46 <text font-family="Arial" font-size="40" x="30" y="40"> 47 'onload' event attribute. 48 </text> 49 <g font-family="Arial" font-size="40" fill="blue" stroke="none"> 50 <g transform="translate(77.5,45)"> 51 <rect id="Rect1" width="80" height="80" visibility="hidden"/> 52 <text x="-30" y="120" fill="red">1: No</text> 53 </g> 54 <g transform="translate(202.5,45)"> 55 <rect id="Rect2" width="80" height="80" onload="onEvent(evt, 'Rect2', 'visible')" visibility="hidden"/> 56 <text x="-30" y="120" fill="red">2: Yes</text> 57 </g> 58 <g transform="translate(327.5,45)"> 59 <g onload="onEvent(evt, 'Rect3', 'visible')"> 60 <rect id="Rect3" width="80" height="80" visibility="hidden"/> 61 </g> 62 <text x="-30" y="120" fill="red">3: Yes</text> 63 </g> 64 <g transform="translate(77.5,178)"> 65 <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="200" height="200" onload="onEvent(evt, 'Rect4', 'visible')"> 66 <rect id="Rect4" width="80" height="80" visibility="hidden"/> 67 </svg> 68 <text x="-30" y="120" fill="red">4: Yes</text> 69 </g> 70 <g transform="translate(202.5,178)"> 71 <g onload="onEvent(evt, 'Rect5', 'hidden')"> 72 <rect id="Rect5" width="80" height="80" onload="onEvent(evt, 'Rect5', 'visible')" visibility="hidden"/> 73 </g> 74 <text x="-30" y="120" fill="red">5: No</text> 75 </g> 76 <g transform="translate(327.5,178)"> 77 <rect id="Rect6" width="80" height="80" visibility="hidden"/> 78 <text x="-30" y="120" fill="red">6: Yes</text> 79 </g> 80 </g> 81 </g> 82 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> 83 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> 84 </g> 85 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> 86 <!-- comment out this watermark once the test is approved --> 87 <!--<g id="draft-watermark"> 88 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> 89 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" 90 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> 91 </g>--> 92 </svg> 93 </body> 94 </html>