<!DOCTYPE html> <style> div { font: 1em/1 Ahem; width: 1em; } span { color: lime; background: lime; } .normal { white-space: normal; } .pre { white-space: pre; } </style> This test passes if there is a green square below. It tests that whitespace at the end of an inline setting white-space:pre is preserved.<br> <div class="normal"><span class="pre">x </span><span class="normal"> xx</span></div>