tor-browser

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

text-overflow-scroll-001.html (1276B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>CSS Overflow: text-overflow: ellipsis and scrolling</title>
      5 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#ellipsis-scrolling">
      7 <link rel="match" href="reference/text-overflow-scroll-001-ref.html">
      8 <meta name="flags" content="should">
      9 <meta name="assert" content="If you scroll an element with 'text-overflow: ellipsis', the ellipsis should move to the new position.">
     10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11 <style>
     12  div {
     13    font: 100px/1 Ahem;
     14    white-space: pre;
     15    width: 400px;
     16    overflow: hidden;
     17    text-overflow: ellipsis;
     18  }
     19 </style>
     20 
     21 <p>The test passes if it matches the reference.</p>
     22 
     23 <div id="test1">ppp pp p</div>
     24 <div id="test2">ppp pp p</div>
     25 <div id="test3"><span style="padding-inline-start: 400px;">ppp pp p</span></div>
     26 <div id="test4"><span style="padding-inline-start: 600px;">ppp pp p</span></div>
     27 
     28 <script>
     29  requestAnimationFrame(() => requestAnimationFrame(() => {
     30    test1.scrollLeft = 200;
     31    test2.scrollLeft = 400;
     32    test3.scrollLeft = 200;
     33    test4.scrollLeft = 1000;
     34    document.documentElement.className = "";
     35  }));
     36 </script>