tor-browser

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

bug1132768-1.html (727B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <title>Can drag-select non-editable content inside editable content</title>
      4  <script src="selection-utils.js"></script>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <script src="/tests/SimpleTest/EventUtils.js"></script>
      7  <div contenteditable spellcheck="false"
      8       style="outline: none">foo<span contenteditable=false>bar</span>baz</div>
      9  <script>
     10  SimpleTest.waitForFocus(function() {
     11    const span = document.querySelector("span");
     12    const rect = span.getBoundingClientRect();
     13    dragSelectPoints(span, 0, rect.height / 2, rect.width, rect.height / 2);
     14    setTimeout(() => document.documentElement.removeAttribute("class"));
     15  });
     16  </script>
     17 </html>