tor-browser

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

white-space-pre-wrap-trailing-spaces-013.html (1453B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <meta http-equiv="content-language" content="en, ja" />
      4 <title>CSS Text test: hanging trailing spaces with white-space:pre-wrap</title>
      5 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com">
      6 <link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property">
      7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
      8 <link rel="help" title="4.1.3. Phase II: Trimming and Positioning" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      9 <link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
     10 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-normal">
     11 <link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-013-ref.html">
     12 <link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-013-ref.html">
     13 <meta name="assert" content="Previous breaking opportunities are not considered if the overflow is caused by hanging trailing spaces.">
     14 <style>
     15 div {
     16  width: 2em;
     17  white-space: pre-wrap;
     18 }
     19 span { background: blue; } /* If the space is removed instead of hanging, there will be no blue box*/
     20 </style>
     21 
     22 <p>This test passes if the line is after the white space, which hangs (blue).
     23 
     24 <div>ああ<span>&#x0020;X<span></div>