| <!doctype html> |
| <meta charset=utf-8> |
| <title>CSS Text test: intrinsic maximum sizing of trailing spaces with white-space:pre-wrap</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/white-space-pre-wrap-trailing-spaces-002-ref.html"> |
| <meta name="assert" content="Hanging preserved white space at the end of the line when white-space is pre-wrap has no effect on the max-content size."> |
| |
| <style> |
| span { |
| display: inline-block; |
| white-space: pre-wrap; |
| } |
| #s1 { text-align: right; } |
| #s2 { text-align: center; } |
| </style> |
| |
| <p>This test passes if the letters below are spaced equally. |
| |
| <div><span id=s1>X </span><span id=s2>X </span>X X</div> |