tor-browser

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

scrollable-overflow-input-001.html (1065B)


      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-001-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 }
     21 </style>
     22 
     23 <!-- The total width of the text (120px) must be less than the <input>'s
     24     width (160px) to reproduce this bug.  -->
     25 <input id="input" value="X  XpX">
     26 
     27 <script type="module">
     28  await document.fonts.load('20px/1 Ahem');
     29  document.getElementById('input').scrollLeft = 1000;
     30  document.documentElement.classList.remove("reftest-wait");
     31 </script>