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/white-space-trim-discard-after.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>white-space-trim: discard-after collapses collapsible white space after an inline box</title>
<link rel="match" href="reference/white-space-trim-discard-after-ref.html">
<meta name="assert" content="'white-space-trim: discard-after' on an inline box collapses the collapsible white space immediately after its end, so '<span>a</span> b' renders as 'ab'.">
<style>
span { white-space-trim: discard-after; }
</style>
</head>
<body>
<p>Test passes if the letters below read "ab" with no space between them.</p>
<div><span>a</span> b</div>
</body>
</html>