tor-browser

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

break-boundary-2-chars-002.html (1307B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Text Test: soft wrap opportunity at boundary between two characters</title>
      6 
      7  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      8  <link rel="help" href="https://www.w3.org/TR/css-text-3/#word-break-property">
      9  <link rel="match" href="reference/break-boundary-2-chars-002-ref.html">
     10 
     11  <meta content="The word-break property can only apply when the 'white-space' value allow text wrapping, when line breaking opportunities are preserved. Therefore, 'word-break: break-all' must not cause any text wrapping in both cases of this test. There must be no wrapping between the 'c' and the 'x' and there must be no wrapping between the 'z' and the 'd'." name="assert">
     12 
     13  <!--
     14 
     15  white-space values that DISallow text wrapping:
     16  { pre , nowrap }
     17 
     18  -->
     19 
     20  <style>
     21  div
     22    {
     23      display: inline-block;
     24      font-size: 32px;
     25      margin-right: 10ch;
     26      width: 0;
     27      word-break: normal;
     28    }
     29 
     30  span
     31    {
     32      word-break: break-all;
     33    }
     34 
     35  div#first-sub-test
     36    {
     37      white-space: pre;
     38    }
     39 
     40  div#second-sub-test
     41    {
     42      white-space: nowrap;
     43    }
     44  </style>
     45 
     46  <div id="first-sub-test">abc<span>xyz</span>def</div>
     47 
     48  <div id="second-sub-test">abc<span>xyz</span>def</div>