animate-interact-pevents-02-t-isvalid.html (6823B)
1 <!DOCTYPE html> 2 <html lang='en'> 3 <head> 4 <title>animate-interact-pevents-02-t-manual.svg</title> 5 <meta charset='utf-8'> 6 </head> 7 <body> 8 <h1>Source SVG: animate-interact-pevents-02-t-manual.svg</h1> 9 <svg id="svg-root" width="100%" height="100%" 10 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" 11 xmlns:xlink="http://www.w3.org/1999/xlink"> 12 <!--======================================================================--> 13 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> 14 <!--= Institute of Technology, European Research Consortium for =--> 15 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> 16 <!--= All Rights Reserved. =--> 17 <!--= See http://www.w3.org/Consortium/Legal/. =--> 18 <!--======================================================================--> 19 20 <title id="test-title">$RCSfile: animate-interact-pevents-02-t.svg,v $</title> 21 <defs> 22 <font-face 23 font-family="SVGFreeSansASCII" 24 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 32 <rect x="15" y="15" height="280" width="450" fill="none" stroke="black" stroke-width="0.25"/> 33 <g text-anchor="middle"> 34 <text x="240" y="30" fill="black" font-size="15">Testing pointer-events and rendering order</text> 35 <text x="240" y="42" fill="#555" font-size="10">Rectangles should turn RED on mouseover </text> 36 <text x="240" y="54" fill="#555" font-size="10">Ovals should turn RED if Pointer-Events are set to "ALL"</text> 37 </g> 38 <g id="buttons"> 39 <g text-anchor="middle" font-size="8" fill="#555" transform="translate(0,10)"> 40 <text x="400" y="85">Change "Pointer-Events" of </text> 41 <text x="400" y="95">ovals from "ALL" to "NONE"</text> 42 <circle id="on" cx="385" cy="65" r="10" fill-opacity="1" fill="#3c5" stroke="black" stroke-width="3"/> 43 <circle id="off" cx="415" cy="65" r="10" fill-opacity="1" fill="#f35" stroke="black"/> 44 </g> 45 <g text-anchor="middle" font-size="12" fill="#555"> 46 <text id="all" x="240" y="285" fill="#555" visibility="visible">Purple ovals have "Pointer-Events" set to "ALL".</text> 47 <text id="none" x="240" y="285" fill="#555" visibility="hidden">Purple ovals have Pointer-Events set to "NONE".</text> 48 </g> 49 <set xlink:href="#all" attributeName="visibility" to="visible" begin="on.mousedown" fill="freeze"/> 50 <set xlink:href="#all" attributeName="visibility" to="hidden" begin="off.mousedown" fill="freeze"/> 51 <set xlink:href="#none" attributeName="visibility" to="hidden" begin="on.mousedown" fill="freeze"/> 52 <set xlink:href="#none" attributeName="visibility" to="visible" begin="off.mousedown" fill="freeze"/> 53 <set xlink:href="#on" attributeName="stroke-width" to="3" begin="on.mousedown" fill="freeze"/> 54 <set xlink:href="#on" attributeName="stroke-width" to="1" begin="off.mousedown" fill="freeze"/> 55 <set xlink:href="#off" attributeName="stroke-width" to="3" begin="off.mousedown" fill="freeze"/> 56 <set xlink:href="#off" attributeName="stroke-width" to="1" begin="on.mousedown" fill="freeze"/> 57 <set xlink:href="#c10" attributeName="pointer-events" to="all" begin="on.mousedown" fill="freeze"/> 58 <set xlink:href="#c10" attributeName="pointer-events" to="none" begin="off.mousedown" fill="freeze"/> 59 <set xlink:href="#c11" attributeName="pointer-events" to="all" begin="on.mousedown" fill="freeze"/> 60 <set xlink:href="#c11" attributeName="pointer-events" to="none" begin="off.mousedown" fill="freeze"/> 61 <set xlink:href="#c12" attributeName="pointer-events" to="all" begin="on.mousedown" fill="freeze"/> 62 <set xlink:href="#c12" attributeName="pointer-events" to="none" begin="off.mousedown" fill="freeze"/> 63 </g> 64 <g transform="scale(0.75, 0.5) translate(100, 85)"> 65 <circle id="c10" cx="160" cy="350" r="100" fill-opacity="1" fill="#53f" stroke="black" pointer-events="all"> 66 <set attributeName="fill" to="#F55" begin="c10.mouseover"/> 67 <set attributeName="fill" to="#53f" begin="c10.mouseout"/> 68 </circle> 69 <rect id="r10" x="10" y="50" width="300" height="300" fill-opacity="1" fill="#35f" stroke="black"> 70 <set attributeName="fill" to="#F55" begin="r10.mouseover"/> 71 <set attributeName="fill" to="#35f" begin="r10.mouseout"/> 72 </rect> 73 <circle id="c11" cx="310" cy="350" r="90" fill-opacity="1" fill="#75f" stroke="black" pointer-events="all"> 74 <set attributeName="fill" to="#F55" begin="c11.mouseover"/> 75 <set attributeName="fill" to="#75f" begin="c11.mouseout"/> 76 </circle> 77 <rect id="r11" x="60" y="100" width="200" height="200" fill-opacity="1" fill="#57f" stroke="black"> 78 <set attributeName="fill" to="#F55" begin="r11.mouseover"/> 79 <set attributeName="fill" to="#57f" begin="r11.mouseout"/> 80 </rect> 81 <circle id="c12" cx="310" cy="200" r="75" fill-opacity="1" fill="#97f" stroke="black" pointer-events="all"> 82 <set attributeName="fill" to="#F55" begin="c12.mouseover"/> 83 <set attributeName="fill" to="#97f" begin="c12.mouseout"/> 84 </circle> 85 <rect id="r12" x="110" y="150" width="100" height="100" fill-opacity="1" fill="#79f" stroke="black"> 86 <set attributeName="fill" to="#F55" begin="r12.mouseover"/> 87 <set attributeName="fill" to="#79f" begin="r12.mouseout"/> 88 </rect> 89 <g id="dasharray-rectangles" stroke-width="0.5" stroke-dasharray="4, 4"> 90 <rect id="r-dash10" x="10" y="50" width="300" height="300" fill-opacity="0" fill="none" stroke="black" pointer-events="none"/> 91 <rect id="r-dash11" x="60" y="100" width="200" height="200" fill-opacity="0" fill="none" stroke="black" pointer-events="none"/> 92 <rect id="r-dash12" x="110" y="150" width="100" height="100" fill-opacity="0" fill="none" stroke="black" pointer-events="none"/> 93 </g> 94 </g> 95 </g> 96 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> 97 <text id="revision" x="10" y="340" stroke="none" 98 fill="black">$Revision: 1.3 $</text> 99 </g> 100 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> 101 <!-- comment out this watermark once the test is approved 102 <g id="draft-watermark"> 103 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> 104 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" 105 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> 106 </g>--> 107 </svg> 108 </body> 109 </html>