Update the CSS Text WPT test suite
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-text / overflow-wrap / overflow-wrap-break-word-007.html
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Text Test: overflow-wrap: break-word</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-overflow-wrap-break-word">
6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
7 <meta name="flags" content="ahem">
8 <link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
9 <meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: pre-wrap' property, that must prevent the word to be broken.">
10 <style>
11 div {
12   position: relative;
13   font-size: 20px;
14   font-family: Ahem;
15   line-height: 1em;
16 }
17 .red {
18   position: absolute;
19   background: green;
20   color: red;
21   width: 100px;
22   height: 100px;
23   z-index: -1;
24   white-space: pre;
25 }
26 .test {
27   color: green;
28   width: 5ch;
29
30   white-space: pre-wrap;
31   overflow-wrap: break-word;
32 }
33 </style>
34 <body>
35   <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
36   <div class="red"> XX  <br>XXX</div>
37   <div class="test"> XX XXX </div>
38 </body>