<style> | |
body { | |
margin-right: 100%; | |
} | |
.normal { | |
padding-left: 1px; | |
white-space: normal; | |
word-wrap: break-word; | |
} | |
.pre { | |
white-space: pre; | |
} | |
</style> | |
<div class="pre"><span class="normal"> | |
This test passes if it does not CRASH.</span></div> | |
<script> | |
// Tests a case where an inline element that sets white-space:normal nested | |
// in a block that sets white-space:pre works correctly when there is a | |
// line break at the start of the inline element. | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
</script> |