tor-browser

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

bug1634743-1.html (722B)


      1 <!doctype html>
      2 <html class="reftest-wait">
      3 <title>Caret is correctly position for block whose only child is a non-empty pseudo, if line-height is used</title>
      4 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      5 <style>
      6  div:focus {
      7    outline: 2px solid blue;
      8  }
      9 
     10  div {
     11    line-height: 5;
     12    border: 1px solid gray;
     13    padding: 8px;
     14  }
     15  div::before {
     16    content: "abc";
     17  }
     18 </style>
     19 <div contenteditable="true" spellcheck="false"></div>
     20 <script>
     21 SimpleTest.waitForFocus(function() {
     22  document.querySelector('[contenteditable="true"]').focus();
     23  requestAnimationFrame(function() {
     24    requestAnimationFrame(function() {
     25      document.documentElement.removeAttribute("class");
     26    });
     27  });
     28 });
     29 </script>