Update the CSS Text WPT test suite
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-text / white-space / pre-wrap-016.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/pre-wrap-001-ref.html">
9 <meta name="assert" content="The word is not broken 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    line-height: 1em;
15 }
16 .red {
17   position: absolute;
18   white-space: pre;
19   background: green;
20   color: red;
21   width: 40px;
22   height: 40px;
23   z-index: -1;
24 }
25 .test {
26   color: green;
27   width: 2ch;
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"><br>XX</div>
36   <div class="test"> XX</div>
37 </body>