Update the CSS Text WPT test suite
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-text / white-space / pre-wrap-008.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-word">
7 <meta name="flags" content="ahem">
8 <link rel="match" href="reference/white-space-break-spaces-005-ref.html">
9 <meta name="assert" content="The word is not broken despite the 'word-break: break-word' if there are previous breaking opportunities, honoring the white-space: pre-wrap value.">
10 <style>
11 div {
12    font-size: 20px;
13    font-family: Ahem;
14 }
15 .red {
16   position: absolute;
17   background: green;
18   color: red;
19   width: 100px;
20   height: 100px;
21   z-index: -1;
22   white-space: pre;
23 }
24 .test {
25   color: green;
26   line-height: 1em;
27   width: 5ch;
28
29   white-space: pre-wrap;
30   word-break: break-word;
31 }
32 </style>
33 <body>
34   <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
35   <div class="red"> XX  <br>XXX</div>
36   <div class="test"> XX XXX </div>
37 </body>