tor-browser

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

text-overflow-006.html (1175B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Basic User Interface Test: text-overflow applied at edge of block container</title>
      4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
      5 <link rel="help" href="http://www.w3.org/TR/css3-ui/#text-overflow">
      6 <link rel="match" href="reference/text-overflow-006-ref.html">
      7 <meta name="assert" content="Checks that the elipsis is applied at the edge of the line box, not the end of the block container, when these are different.">
      8 <style>
      9 div {
     10  white-space: pre;
     11  font-family: monospace;
     12  text-overflow: ellipsis;
     13  overflow: hidden;
     14  width: 9.5ch;
     15  /* 9ch ought to be enough,
     16     but Safari seems to have aliasing issues that make the ellipsis character larger than 1ch by a bit.
     17     Adding an extra .5 does not change the validity of the test,
     18     and lets safari fit “PASS…” in the space provided.
     19     This issue may be a bug, but if so, it is unrelated to what this test is testing,
     20     so no need to force a fail when an easy workaround is available.
     21   */
     22 }
     23 span { float: right; }
     24 </style>
     25 
     26 <p>Test passes if “PASS…” appears below.</p>
     27 <div><span>    </span>PASS FAIL</div>