tor-browser

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

selection-image-001.html (635B)


      1 <!doctype html>
      2 <title>::selection is respected on images</title>
      3 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1449010">
      5 <link rel="mismatch" href="selection-image-001-noref.html">
      6 <style>
      7 img::-moz-selection {
      8  background: green;
      9 }
     10 img::selection {
     11  background: green;
     12 }
     13 </style>
     14 <p>
     15  Some text <img src="resources/blue15x15.png"> some more.
     16 </p>
     17 <script>
     18 onload = () => {
     19  getSelection().removeAllRanges();
     20  let r = document.createRange();
     21  r.selectNode(document.documentElement);
     22  getSelection().addRange(r);
     23 }
     24 </script>