tor-browser

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

hyphens-span-002.html (1256B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: auto hyphen and span</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 unstyled inline element has no effect on text in general and on manual hyhenation in particular">
      8 <style>
      9 div {
     10  border: solid orange;
     11  margin: 5px;
     12  width: 6ch;
     13  hyphens: auto;
     14 }
     15 </style>
     16 
     17 <p>Test passes if the text in all orange boxes below is identical (including the presence and position of a hyphen).
     18 
     19 <div lang=en>highway</div>
     20 <div lang=en><span>high</span>way</div>
     21 <div lang=en>high<span></span>way</div>
     22 <div lang=en>high<span>way</span></div>
     23 <div lang=en><span>high</span><span>way</span></div>
     24 <div lang=en><span>highwa</span>y</div>
     25 <div lang=en><span>hi</span>ghway</div>
     26 
     27 <!--
     28 This test assumes the presence of "highway"
     29 with a hyphenation point between "high" and "way"
     30 in the hyphenation dictionary for English
     31 in order to be useful,
     32 but that assumption is not necessary for the test to be correct:
     33 if the word doesn't hyphenate,
     34 it will not hyphenate in any of the cases.
     35 -->