tor-browser

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

hyphens-out-of-flow-002.html (1306B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: auto hyphenation and out-of-flow</title>
      4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#hyphens-property">
      6 <link rel="match" href="reference/hyphens-span-002-ref.html">
      7 <meta name="assert" content="the presence of an out of flow element has no effect on automatic hyhenation">
      8 <style>
      9 span {
     10  position: absolute;
     11  color: transparent;
     12 }
     13 div {
     14  border: solid orange;
     15  margin: 5px;
     16  width: 6ch;
     17  hyphens: auto;
     18 }
     19 </style>
     20 
     21 <p>Test passes if the text in all orange boxes below is identical (including the presence and position of a hyphen).
     22 
     23 <div lang=en>highway</div>
     24 <div lang=en><span>abspos</span>highway</div>
     25 <div lang=en>h<span>abspos</span>ighway</div>
     26 <div lang=en>high<span>abspos</span>way</div>
     27 <div lang=en>high<span>abspos</span>way</div>
     28 <div lang=en>highwa<span>abspos</span>y</div>
     29 <div lang=en>highway<span>abspos</span></div>
     30 
     31 <!--
     32 This test assumes the presence of "highway"
     33 with a hyphenation point between "high" and "way"
     34 in the hyphenation dictionary for English
     35 in order to be useful,
     36 but that assumption is not necessary for the test to be correct:
     37 if the word doesn't hyphenate,
     38 it will not hyphenate in any of the cases.
     39 -->