haikuwebkit/LayoutTests/fast/text/whitespace/nowrap-white-space-collapse...

23 lines
551 B
HTML

<!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>