Update the CSS Text WPT test suite
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-text / white-space / break-spaces-005.html
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Text Test: white-space - break-spaces</title>
4 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
5 <link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property">
6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
7 <link rel="match" href="reference/white-space-break-spaces-005-ref.html">
8 <meta name="flags" content="ahem">
9 <meta name="assert" content="If 'white-space' is set to 'break-spaces', collapsing preserved white-spaces' advance width is not allowed, so that they can be wrapped honoring the 'white-space' propery.">
10 <style>
11 div {
12   font: 10px/1 Ahem;
13 }
14 .fail {
15   position: absolute;
16   color: red;
17   z-index: -1;
18 }
19 span { color: green; }
20 .test {
21   color: green;
22   width: 100px;
23
24   white-space: break-spaces;
25 }
26
27 </style>
28 <body>
29   <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
30   <div class="fail">XXXX<span>XXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XX</span>XXXX<span>XXXX</span></div>
31   <div class="test">XXXX                                                                                        XXXX</div>
32 </body>