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-zero-fontsize-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset=utf-8>
<title>CSS Text Test: preserved white space with zero font-size</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="match" href="reference/white-space-zero-fontsize-001-ref.html">
<meta name="assert" content="Forced line break in preserved white space is respected even when font-size is zero">
<style>
pre {
font-size: 0;
float: left;
border: 1px solid black;
margin: 12px;
}
span { font-size: 12px; }
</style>
<pre>
<span>foo</span>
<span>bar</span>
</pre>