tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

animate-interact-events-01-t-isvalid.html (4461B)


      1 <!DOCTYPE html>
      2 <html lang='en'>
      3 <head>
      4 <title>animate-interact-events-01-t-manual.svg</title>
      5 <meta charset='utf-8'>
      6 </head>
      7 <body>
      8 <h1>Source SVG: animate-interact-events-01-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-events-01-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 	<defs>
     33 		<!-- SVGElementInstance animates fill on mouseover -->
     34 		<rect id="rect" width="50" height="50" fill="red">
     35 			<set attributeName="fill" begin="mouseover" end="mouseout" to="blue"/>
     36 		</rect>
     37 	</defs>
     38 
     39    <text x="120" y="20" font-size="15">Shadow tree event listener chain</text>
     40 
     41    <!--basic event dispatch - all rectangles turn blue -->
     42    <use fill="red" x="30" y="30" xlink:href="#rect"/>
     43    <text x="95" y="45" font-size="12">Case 1: on mouseover all squares must turn blue</text>
     44 
     45    <!-- event bubbling from SVGElementInstance to referencing element -->
     46    <!-- all rectangles turn blue and second rectangle displays black stroke  -->
     47    <use id="use2" fill="red" x="30" y="100" xlink:href="#rect"/>
     48    <rect pointer-events="none" x="30" y="100" width="50" height="50" fill="none" stroke-width="5" stroke="none" >
     49      <set attributeName="stroke" begin="use2.mouseover" end="use2.mouseout" to="black"/>
     50    </rect>
     51    <g font-size="12">
     52      <text x="95" y="115">Case 2: on mouseover all squares must turn blue</text>
     53      <text x="95" y="130">and a black stroke must appear on reference square</text>
     54    </g>
     55 
     56    <!-- event bubbling from SVGElementInstance to referencing element ancestors-->
     57    <!-- all rectangles turn blue and third rectangle displays black stroke  -->
     58    <g id="g1">
     59      <use fill="red" x="30" y="170" xlink:href="#rect"/>
     60      <rect pointer-events="none" x="30" y="170" width="50" height="50" fill="none" stroke-width="5" stroke="none" >
     61        <set attributeName="stroke" begin="g1.mouseover" end="g1.mouseout" to="black"/>
     62      </rect>
     63    </g>
     64    <g font-size="12">
     65      <text x="95" y="185">Case 3: on mouseover all squares must turn blue</text>
     66      <text x="95" y="200">and a black stroke must appear on reference square</text>
     67    </g>
     68 
     69    <!--SVGElementInstance is not effected by event listener on referencing element   -->
     70    <!-- all rectangles turn blue and displays black stroke only on mouse down  -->
     71    <use id="use3" fill="red" x="30" y="240" xlink:href="#rect"/>
     72    <rect pointer-events="none" x="30" y="240" width="50" height="50" fill="none" stroke-width="5" stroke="none" >
     73      <set attributeName="stroke" begin="use3.mousedown" end="use3.mouseup" to="black"/>
     74    </rect>
     75    <g font-size="12">
     76      <text x="95" y="255">Case 4: on mouseover all squares must turn blue</text>
     77      <text x="95" y="270">and on mousedown a black stroke must appear on reference square</text>
     78    </g>
     79 
     80  </g>
     81  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
     82    <text id="revision" x="10" y="340" stroke="none"
     83      fill="black">$Revision: 1.2 $</text>
     84  </g>
     85  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
     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>