interact-order-03-b-isvalid.html (3617B)
1 <!DOCTYPE html> 2 <html lang='en'> 3 <head> 4 <title>interact-order-03-b-manual.svg</title> 5 <meta charset='utf-8'> 6 </head> 7 <body> 8 <h1>Source SVG: interact-order-03-b-manual.svg</h1> 9 <svg version="1.1" baseProfile="basic" 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-order-03-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 bubbleYes(evt, color){ 35 // Get Document 36 var target = evt.target; 37 target.setAttribute('fill', '' +color); 38 } 39 function bubbleNo(evt, color){ 40 // Get Document 41 var target = evt.target; 42 target.setAttribute('fill', '' +color); 43 evt.stopPropagation(); 44 evt.preventDefault(); 45 } 46 47 ]]></script> 48 </defs> 49 <text font-family="Arial" font-size="40" x="60" y="40">Event bubbling - c</text> 50 <g id="background"> 51 <rect fill="#EEE" stroke="#000" x="10" y="55" width="460" height="230"/> 52 </g> 53 <g fill="#000" font-family="Arial" font-size="40"> 54 <!-- Ensure that events get the event before the hyperlink which 55 happens before text selection --> 56 <a xlink:href="../images/interact-order-03-b-targ.svg" font-size="40"> 57 <text x="20" y="90" onclick="bubbleNo(evt, 'red')" onmouseout="bubbleNo(evt, 'inherit')"> 58 String turns red on click 59 </text> 60 <g onclick="bubbleYes(evt, 'blue')" onmouseout="bubbleYes(evt, 'inherit')"> 61 <text x="60" y="160"> 62 String hyperlinks to 63 </text> 64 <text x="20" y="200" font-size="33"> 65 interact-order-03b-targ.svg 66 </text> 67 </g> 68 <text x="30" y="270" onclick="bubbleNo(evt, 'inherit')"> 69 All strings are selectable. 70 </text> 71 </a> 72 </g> 73 </g> 74 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> 75 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text> 76 </g> 77 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> 78 <!-- comment out this watermark once the test is approved --> 79 <!--<g id="draft-watermark"> 80 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> 81 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" 82 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> 83 </g>--> 84 </svg> 85 </body> 86 </html>