Fixes #16898.  Apply white-space:nowrap to block element and not SPAN.