tor-browser

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

animate-script-elem-01-b-isvalid.html (2947B)


      1 <!DOCTYPE html>
      2 <html lang='en'>
      3 <head>
      4 <title>animate-script-elem-01-b-manual.svg</title>
      5 <meta charset='utf-8'>
      6 </head>
      7 <body>
      8 <h1>Source SVG: animate-script-elem-01-b-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-script-elem-01-b.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    <text x='10' y='30'>Test that &lt;script xlink:href=""> is not animatable</text>
     33 
     34    <g>
     35      <rect id='r1' x='10' y='50' width='30' height='30' fill='black'/>
     36      <rect id='r2' x='10' y='90' width='30' height='30' fill='green'/>
     37      <g font-size='15'>
     38        <text x='50' y='70'>Test script.href.animVal does not change</text>
     39        <text x='50' y='110'>Test animating xlink:href="" does not load a script</text>
     40      </g>
     41 
     42      <script id='s' xlink:href='../images/empty.js'/>
     43      <script>
     44        function f() {
     45          document.getElementById('r2').setAttribute('fill', 'red');
     46        }
     47 
     48        function g() {
     49          document.getElementById('r1').setAttribute('fill', document.getElementById('s').href.animVal.indexOf('empty') >= 0 ? 'green' : 'red');
     50        }
     51      </script>
     52      <set xlink:href='#s' attributeName='xlink:href' to='../images/f.js' dur='100s'/>
     53      <set attributeName='visibility' to='hidden' dur='1s' onend='g()'/>
     54    </g>
     55 
     56  </g>
     57  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
     58    <text id="revision" x="10" y="340" stroke="none"
     59      fill="black">$Revision: 1.1 $</text>
     60  </g>
     61  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
     62  <!-- comment out this watermark once the test is approved --><!--
     63  <g id="draft-watermark">
     64    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
     65    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
     66      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
     67  </g>-->
     68 </svg>
     69 </body>
     70 </html>