tor-browser

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

css-and-svg-filter-01.html (515B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <style>
      5    .dark {
      6      filter:  invert(1) url("#balance-color") ;
      7    }
      8  </style>
      9 </head>
     10 <body>
     11 
     12  <svg class="dark" width="400" height="110">
     13    <rect width="300" height="100" style="fill:rgb(255,255,255);" />
     14  </svg>
     15 
     16  <svg width="10" height="10">
     17    <defs>
     18      <filter id="balance-color">
     19        <feColorMatrix type="matrix"
     20        values="1 0 0 0 0   0 1 0 0 0   0 0 1 0 0   0 0 0 1 0">
     21        </feColorMatrix>
     22      </filter>
     23    </defs>
     24  </svg>
     25 
     26 </body>
     27 </html>