Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/white-space/break-spaces-with-word-break-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: white-space:break-spaces + word-break:keep-all</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-break-spaces">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="break-spaces + keep-all does allow a break after space.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div {
font: 50px/1 Ahem;
white-space: break-spaces;
word-break: keep-all;
width: 100px;
height: 100px;
background: red;
color: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div>XX XX</div>