tor-browser

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

scrollable-overflow-input-002.html (1086B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>CSS Overflow Test: Test the text in an input is not clipped and reachable</title>
      5 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      6 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      7 <link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scrollable">
      8 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1715291">
      9 <link rel="match" href="scrollable-overflow-input-002-ref.html">
     10 <link rel="stylesheet" href="/fonts/ahem.css">
     11 
     12 <style>
     13 input {
     14  box-sizing: border-box;
     15  width: 160px;
     16  padding-inline: 20px 60px;
     17  background: yellow;
     18  font: 20px/1 Ahem;
     19  border: 0;
     20  direction: rtl;
     21 }
     22 </style>
     23 
     24 <!-- The total width of the text (120px) must be less than the <input>'s
     25     width (160px) to reproduce this bug.  -->
     26 <input id="input2" value="XpX  X">
     27 
     28 <script type="module">
     29  await document.fonts.load('20px/1 Ahem');
     30  document.getElementById('input2').scrollLeft = -1000;
     31  document.documentElement.classList.remove("reftest-wait");
     32 </script>