break-spaces-with-word-break-001.html (876B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text Test: white-space:break-spaces + word-break:keep-all</title> 4 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-break-spaces"> 6 <link rel="help" href="https://drafts.csswg.org/css-text-4/#valdef-word-break-keep-all"> 7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 8 <meta name="assert" content="break-spaces + keep-all does allow a break after space."> 9 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 11 <style> 12 div { 13 font: 50px/1 Ahem; 14 white-space: break-spaces; 15 word-break: keep-all; 16 width: 100px; 17 height: 100px; 18 background: red; 19 color: green; 20 } 21 </style> 22 23 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 24 <div>XX XX</div>