tor-browser

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

custom-highlight-painting-below-selection-transparency-ref.html (347B)


      1 <!DOCTYPE html>
      2 <meta charset="UTF-8">
      3 <style>
      4  #highlighted {
      5    background: yellow;
      6  }
      7 </style>
      8 
      9 <body><span id="highlighted">This should be yellow, <span id="selected">this should mix with the
     10      selection,</span></span> this should have no background.
     11  <script>
     12    getSelection().setBaseAndExtent(selected, 0, selected, 1);
     13  </script>