blob: 3ea4ee38fc426093aef85d1ca5abed94046ef4e5 [file] [log] [blame]
<!DOCTYPE html>
<style>
div {
font: 1em/1 Ahem;
width: 1em;
}
span {
color: lime;
background: lime;
}
.pre {
white-space: pre;
}
</style>
This test passes if there is a horizontal green line below. It tests that:
<ul>
<li>a block setting white-space:pre does not affect the whitespace-collapsing
behavior of an inline setting white-space:nowrap</li>
<li>an inline setting white-space:normal or nowrap does not allow wrapping
when nested in a block that sets white-space:pre</li>
</ul>
<div class="test pre"><span>x xx</span></div>