Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-text/white-space/trailing-other-space-separators-002.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Text level 3 Test: sequence of spaces and other space separators at the end of line 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/trailing-other-space-separators-002-ref.html"> <meta name="assert" content="An sequence of regular spaces and other space separators at the end of the line must hang if white-space is pre-wrap."> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> div { white-space: pre-wrap; font-family: Ahem; font-size: 10px; line-height: 1; width: 3ch; color: green; } .red { position: absolute; z-index: -1; } .red div { color: red; } span { color: transparent; } /* because ogham space is otherwise visible*/ </style> <p>Test passes if there are two green tall boxes below and no red. <section class=red> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> </section> <section> <div>x x<span> </span>                   x x</div> <div>x x<span> </span>x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x <wbr>x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x x x</div> <div>x x <wbr>x x</div> <div>x x x x</div> <div>x x x x</div> </section>
/css/css-text/white-space/reference/trailing-other-space-separators-002-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>Test reference</title> <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> div { white-space: pre-wrap; font-family: Ahem; font-size: 10px; line-height: 1; color: green; } </style> <p>Test passes if there are two green tall boxes below and no red. <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div> <div>x x<br>x x</div>