tor-browser

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

animate-elem-91-t-isvalid.html (9022B)


      1 <!DOCTYPE html>
      2 <html lang='en'>
      3 <head>
      4 <title>animate-elem-91-t-manual.svg</title>
      5 <meta charset='utf-8'>
      6 </head>
      7 <body>
      8 <h1>Source SVG: animate-elem-91-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  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
     14  <!--======================================================================-->
     15  <!--=  Copyright 2008 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: animate-elem-91-t.svg,v $</title>
     23  <defs>
     24    <font-face
     25      font-family="SVGFreeSansASCII"
     26      unicode-range="U+0-7F">
     27      <font-face-src>
     28        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
     29      </font-face-src>
     30    </font-face>
     31  </defs>
     32  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
     33 
     34    <text x="10" y="40">Testing &lt;animate to=""&gt; with non-interpolable attributes</text>
     35 
     36    <g font-size="16">
     37 
     38      <text x="207.5" y="75" text-anchor="middle">0s-2s</text>
     39      <text x="307.5" y="75" text-anchor="middle">> 2s</text>
     40 
     41      <!-- Reference: using <set> -->
     42      <g transform="translate(0,85)">
     43        <text x="30" y="12">(reference)</text>
     44        <rect x="200" width="12" height="12" stroke="black" fill="rgb(204,0,102)">
     45          <set attributeName="fill" to="#ccc" begin="2s" dur="2s" fill="freeze"/>
     46        </rect>
     47        <rect x="300" width="12" height="12" stroke="black" fill="#ccc">
     48          <set attributeName="fill" to="rgb(204,0,102)" begin="2s" dur="2s" fill="freeze"/>
     49        </rect>
     50      </g>
     51 
     52      <!-- Sub-test 1: class on <rect> -->
     53      <g transform="translate(0,110)">
     54        <style>.on { fill: rgb(204,0,102) } .off { fill: #ccc }</style>
     55        <text x="30" y="12">class</text>
     56        <rect x="200" width="12" height="12" stroke="black" class="on">
     57          <animate attributeName="class" to="off" begin="2s" dur="2s" fill="freeze"/>
     58        </rect>
     59        <rect x="300" width="12" height="12" stroke="black" class="off">
     60          <animate attributeName="class" to="on" begin="2s" dur="2s" fill="freeze"/>
     61        </rect>
     62      </g>
     63 
     64      <!-- Sub-test 2: clipPathUnits on <clipPath> -->
     65      <g transform="translate(0,135)">
     66        <text x="30" y="12">clipPathUnits</text>
     67        <clipPath id="c1" clipPathUnits="objectBoundingBox">
     68          <rect width="1" height="1"/>
     69          <animate attributeName="clipPathUnits" to="userSpaceOnUse" begin="2s" dur="2s" fill="freeze"/>
     70        </clipPath>
     71        <rect x="200" width="12" height="12" stroke="black" fill="#ccc"/>
     72        <rect x="200" width="12" height="12" stroke="black" fill="rgb(204,0,102)" clip-path="url(#c1)"/>
     73        <rect x="300" width="12" height="12" stroke="black" fill="rgb(204,0,102)"/>
     74        <rect x="300" width="12" height="12" stroke="black" fill="#ccc" clip-path="url(#c1)"/>
     75      </g>
     76 
     77      <!-- Sub-test 3: in on <feComposite> -->
     78      <g transform="translate(0,160)">
     79        <text x="30" y="12">in</text>
     80        <filter id="f1" x="0" y="0" width="1" height="1">
     81          <feFlood flood-color="#ccc" result="off"/>
     82          <feFlood flood-color="rgb(204,0,102)" result="on"/>
     83          <feComposite in="on" in2="SourceGraphic">
     84            <animate attributeName="in" to="off" begin="2s" dur="2s" fill="freeze"/>
     85          </feComposite>
     86        </filter>
     87        <filter id="f2" x="0" y="0" width="1" height="1">
     88          <feFlood flood-color="#ccc" result="off"/>
     89          <feFlood flood-color="rgb(204,0,102)" result="on"/>
     90          <feComposite in="off" in2="SourceGraphic">
     91            <animate attributeName="in" to="on" begin="2s" dur="2s" fill="freeze"/>
     92          </feComposite>
     93        </filter>
     94        <rect x="200" width="12" height="12" fill="none" filter="url(#f1)"/>
     95        <rect x="200" width="12" height="12" stroke="black" fill="none"/>
     96        <rect x="300" width="12" height="12" fill="none" filter="url(#f2)"/>
     97        <rect x="300" width="12" height="12" stroke="black" fill="none"/>
     98      </g>
     99 
    100      <!-- Sub-test 4: preserveAspectRatio on <svg> -->
    101      <g transform="translate(0,185)">
    102        <text x="30" y="12">preserveAspectRatio</text>
    103        <rect x="200" width="12" height="12" fill="#ccc"/>
    104        <rect x="300" width="12" height="12" fill="rgb(204,0,102)"/>
    105        <clipPath id="c2" clipPathUnits="userSpaceOnUse">
    106          <rect x="200" y="0" width="112" height="12"/>
    107        </clipPath>
    108        <g clip-path="url(#c2)">
    109          <svg width="200" height="100" viewBox="0 0 400 400" preserveAspectRatio="none" overflow="visible">
    110            <rect x="400" width="24" height="48" fill="rgb(204,0,102)"/>
    111            <rect x="600" width="24" height="48" fill="#ccc"/>
    112            <animate attributeName="preserveAspectRatio" to="xMinYMin" begin="2s" dur="2s" fill="freeze"/>
    113          </svg>
    114        </g>
    115        <rect x="200" width="12" height="12" stroke="black" fill="none"/>
    116        <rect x="300" width="12" height="12" stroke="black" fill="none"/>
    117      </g>
    118 
    119      <!-- Sub-test 5: spreadMethod on <linearGradient> -->
    120      <g transform="translate(0,210)">
    121        <text x="30" y="12">spreadMethod</text>
    122        <linearGradient id="g1" gradientUnits="objectBoundingBox" x1="1" y1="0" x2="2" y2="0" spreadMethod="reflect">
    123          <stop offset="0" stop-color="rgb(204,0,102)" stop-opacity="0"/>
    124          <stop offset="0" stop-color="rgb(204,0,102)"/>
    125          <stop offset="1" stop-color="rgb(204,0,102)"/>
    126          <stop offset="1" stop-color="rgb(204,0,102)" stop-opacity="0"/>
    127          <animate attributeName="spreadMethod" to="pad" begin="2s" dur="2s" fill="freeze"/>
    128        </linearGradient>
    129        <linearGradient id="g2" gradientUnits="objectBoundingBox" x1="1" y1="0" x2="2" y2="0" spreadMethod="reflect">
    130          <stop offset="0" stop-color="#ccc" stop-opacity="0"/>
    131          <stop offset="0" stop-color="#ccc"/>
    132          <stop offset="1" stop-color="#ccc"/>
    133          <stop offset="1" stop-color="#ccc" stop-opacity="0"/>
    134          <animate attributeName="spreadMethod" to="pad" begin="2s" dur="2s" fill="freeze"/>
    135        </linearGradient>
    136        <rect x="200" width="12" height="12" fill="#ccc"/>
    137        <rect x="300" width="12" height="12" fill="rgb(204,0,102)"/>
    138        <rect x="200" width="12" height="12" stroke="black" fill="url(#g1)"/>
    139        <rect x="300" width="12" height="12" stroke="black" fill="url(#g2)"/>
    140      </g>
    141 
    142      <!-- Sub-test 6: xlink:href on <use> -->
    143      <g transform="translate(0,235)">
    144        <text x="30" y="12">xlink:href</text>
    145        <g display="none">
    146          <rect id="r1" width="12" height="12" fill="rgb(204,0,102)" stroke="black"/>
    147          <rect id="r2" width="12" height="12" fill="#ccc" stroke="black"/>
    148        </g>
    149        <use xlink:href="#r1" x="200">
    150          <animate attributeName="xlink:href" to="#r2" begin="2s" dur="2s" fill="freeze"/>
    151        </use>
    152        <use xlink:href="#r2" x="300">
    153          <animate attributeName="xlink:href" to="#r1" begin="2s" dur="2s" fill="freeze"/>
    154        </use>
    155      </g>
    156 
    157      <!-- Sub-test 7: display on <rect> -->
    158      <g transform="translate(0,260)">
    159        <text x="30" y="12">display</text>
    160        <g>
    161          <rect x="200" width="12" height="12" fill="rgb(204,0,102)" stroke="black"/>
    162          <rect x="300" width="12" height="12" fill="#ccc" stroke="black"/>
    163          <animate attributeName="display" to="none" begin="2s" dur="2s" fill="freeze"/>
    164        </g>
    165        <g display="none">
    166          <rect x="200" width="12" height="12" fill="#ccc" stroke="black"/>
    167          <rect x="300" width="12" height="12" fill="rgb(204,0,102)" stroke="black"/>
    168          <animate attributeName="display" to="inline" begin="2s" dur="2s" fill="freeze"/>
    169        </g>
    170      </g>
    171    </g>
    172  </g>
    173  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
    174    <text id="revision" x="10" y="340" stroke="none"
    175      fill="black">$Revision: 1.1 $</text>
    176  </g>
    177  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
    178  <!-- comment out this watermark once the test is approved -->
    179  <g id="draft-watermark">
    180    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
    181    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
    182      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
    183  </g>
    184 </svg>
    185 </body>
    186 </html>