tor-browser

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

interact-order-02-b-isvalid.html (3608B)


      1 <!DOCTYPE html>
      2 <html lang='en'>
      3 <head>
      4 <title>interact-order-02-b-manual.svg</title>
      5 <meta charset='utf-8'>
      6 </head>
      7 <body>
      8 <h1>Source SVG: interact-order-02-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-02-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="45">Event bubbling - b</text>
     50    <g id="background">
     51      <rect fill="#EEE" stroke="#000" x="10" y="60" width="460" height="120"/>
     52      <rect fill="#FFF" stroke="#000" x="10" y="180" width="460" height="120"/>
     53    </g>
     54    <g fill="#000" font-family="Arial" font-size="40">
     55      <!-- Test the order of events -->
     56      <!-- Ensure that events get the event before the hyperlink. -->
     57      <a xlink:href="../images/interact-order-02-b-targ.svg">
     58        <circle onclick="bubbleNo(evt, 'red')" onmouseout="bubbleNo(evt, 'inherit')" cx="70" cy="120" r="50"/>
     59        <circle onclick="bubbleYes(evt, 'blue')" onmouseout="bubbleNo(evt, 'inherit')" cx="70" cy="240" r="50"/>
     60      </a>
     61      <text x="135" y="110">
     62        Click on circle,
     63      </text>
     64      <text x="135" y="150">
     65        circle turns red
     66      </text>
     67      <text x="135" y="230">
     68        Click on circle,
     69      </text>
     70      <text x="135" y="270">
     71        hyperlink
     72      </text>
     73    </g>
     74  </g>
     75  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
     76    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
     77  </g>
     78  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
     79  <!-- comment out this watermark once the test is approved -->
     80  <!--<g id="draft-watermark">
     81    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
     82    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
     83      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
     84  </g>-->
     85 </svg>
     86 </body>
     87 </html>