tor-browser

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

custom-highlight-painting-text-decoration-dynamic-001-ref.html (471B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Highlight API Test: Reference ::highlight dynamic change text-decoration</title>
      4 <style>
      5  ::highlight(example) {
      6    text-decoration: solid underline green;
      7  }
      8 </style>
      9 <p>The test passes if it line below has a green underline.</p>
     10 <div id="target">target</div>
     11 <script>
     12  let range = new Range();
     13  range.setStart(target, 0);
     14  range.setEnd(target, 1);
     15  CSS.highlights.set(`example`, new Highlight(range));
     16 </script>