tor-browser

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

svg-use-symbol-opacity-print.html (687B)


      1 <!doctype html>
      2 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1843883">
      3 <link rel="match" href="svg-use-symbol-opacity-print-ref.html">
      4 <html>
      5 <head>
      6 <style>
      7 body { margin: 0 }
      8 </style>
      9 </head>
     10 <body>
     11 <!-- Should see a semi-transparent blue square inside the top left quarter of a purple square -->
     12 <svg width=200 height=200 viewBox="0 0 200 200">
     13  <defs>
     14    <symbol id="r" viewBox="0 0 200 200">
     15      <rect fill="blue" width=100 height=100>
     16        <set attributeName="fill-opacity" to="0.5" fill="freeze"/>
     17      </rect>
     18    </symbol>
     19  </defs>
     20  <rect fill="purple" width=100 height=100 />
     21  <use href="#r" width="100" height="100" />
     22 </svg>
     23 </body>
     24 </html>