Update the CSS Text WPT test suite
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-text / white-space / pre-wrap-015.html
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Text Test: white-space: pre-wrap</title>
4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
7 <meta name="flags" content="ahem">
8 <link rel="match" href="reference/pre-wrap-001-ref.html">
9 <meta name="assert" content="The text is broken at the end of the space between the two words, never before, so it hangs and cause an overflow">
10 <style>
11 div {
12   font: 20px/1 Ahem;
13 }
14 .ref {
15   position: absolute;
16   color: red;
17   z-index: -1;
18 }
19 .test {
20   color: green;
21   width: 20px;
22
23   white-space: pre-wrap;
24   word-break: break-all;
25 }
26 </style>
27 <body>
28   <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
29   <div class="ref">X<span style="color: green">X</span><br>X<span style="color: green">X</span></div>
30   <div class="test">X X</div>
31 </body>