blob: 6bfe386f66131f9499e91e63b859d799c12e6892 [file] [log] [blame]
<!DOCTYPE html>
<style>
div {
font: 1em/1 Ahem;
width: 1em;
}
span {
color: lime;
background: lime;
}
.normal {
white-space: normal;
}
.nowrap {
white-space: nowrap;
}
.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 class="nowrap foo">x </span><span class="normal">xx</span></div>