| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>CSS Text level 3 Test: sequence of spaces and other space separators at the end of line, white-space:pre-line</title> |
| <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> |
| <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> |
| <link rel="match" href="reference/trailing-other-space-separators-001-ref.html"> |
| <meta name="assert" content="An sequence of regular spaces and other space separators at the end of the line must be removed, with white-space:pre-line."> |
| <style> |
| div { font-family: monospace; width: 2ch; white-space: pre-line; } |
| span { background: red; } /* If the space hangs instead of being removed, there will be red */ |
| </style> |
| |
| <p>Test passes if there are two columns of "x" characters below and no red. |
| |
| <div>xx<span>                    </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span><wbr>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span><wbr>xx</div> |
| <div>xx<span> </span>xx</div> |
| <div>xx<span> </span>xx</div> |