tor-browser

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

script-handle-02-b-isvalid.html (4454B)


      1 <!DOCTYPE html>
      2 <html lang='en'>
      3 <head>
      4 <title>script-handle-02-b-manual.svg</title>
      5 <meta charset='utf-8'>
      6 </head>
      7 <body>
      8 <h1>Source SVG: script-handle-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: script-handle-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 
     32    <!-- Displayed Title -->
     33    <text x="100" y="40" fill="black" font-size="24">
     34      Mouse event handlers test.
     35    </text>
     36 
     37    <!-- The test defines a target and defines all the handlers for the target -->
     38    <!-- There are legends for each handler that are modified after the handler-->
     39    <!-- has been invoked                                                      -->
     40 
     41    <g id="targetGroup" transform="translate(60, 140)">
     42      <text x="-40" y="-50" font-size="32">Target</text>
     43      <text x="60" y="7" font-size="24">Use the target to trigger events</text>
     44      <!-- The target has all the event handlers defined -->
     45      <!-- Use this <g> instead -->
     46      <g id="target" onfocusin="onEvent(evt, 'onfocusin')" onfocusout="onEvent(evt, 'onfocusout')" onactivate="onEvent(evt, 'onactivate')">
     47 
     48        <circle cx="0" cy="0" r="30" fill="#cccccc" stroke="black"/>
     49        <line x1="-30" y1="0" x2="30" y2="0"/>
     50        <line x1="0" y1="-30" x2="0" y2="30"/>
     51      </g>
     52    </g>
     53    <!-- targetGroup -->
     54 
     55    <g id="labels">
     56      <g id="mouseEvents" transform="translate(65, 190)">
     57        <g id="mouseEventsLabels">
     58          <text x="10" y="20" font-size="32">onfocusin</text>
     59          <text x="10" y="50" font-size="32">onfocusout</text>
     60          <text x="10" y="80" font-size="32">onactivate</text>
     61        </g>
     62        <g id="mouseEventsTestIndicators">
     63          <!-- onfocusin -->
     64          <rect x="-15" y="2" width="20" height="20" fill="green"/>
     65          <rect id="onfocusin" x="-15" y="2" width="20" height="20" fill="red"/>
     66 
     67          <!-- onfocusout -->
     68          <rect x="-15" y="32" width="20" height="20" fill="green"/>
     69          <rect id="onfocusout" x="-15" y="32" width="20" height="20" fill="red"/>
     70 
     71          <!-- onactivate -->
     72          <rect x="-15" y="62" width="20" height="20" fill="green"/>
     73          <rect id="onactivate" x="-15" y="62" width="20" height="20" fill="red"/>
     74 
     75        </g>
     76      </g>
     77      <!-- Mouse Events -->
     78    </g>
     79 
     80    <script type="text/ecmascript"><![CDATA[
     81 
     82      function onEvent(evt, indicatorId){
     83      // Get Document
     84      var target = evt.target;
     85      var doc = target.ownerDocument;
     86 
     87      // Mark test as passed
     88      var testPassed = doc.getElementById(indicatorId);
     89      testPassed.setAttribute('visibility', 'hidden');
     90      }
     91    ]]></script>
     92 
     93  </g>
     94  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
     95    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
     96  </g>
     97  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
     98  <!-- comment out this watermark once the test is approved -->
     99  <g id="draft-watermark">
    100    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
    101    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
    102      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
    103  </g>
    104 </svg>
    105 </body>
    106 </html>