Created attachment 77460 [details] repro case white-space:pre should not add any line breaks. This works fine with normal elements, but breaks when an element becomes contenteditable. See the attached repo case. Expected: Both elements in the repo case look the same. Actual: The contents of the contenteditable div get wrapped. Works fine in Ff3.6 and Ff4 beta.
Ran into this same issue. Firefox and IE behave differently than Safari and Chrome. Created another test case page: http://patorjk.com/browser-issues/contentedibable-pre.htm
I suppose this is caused by applyEditingStyleToElement: http://trac.webkit.org/browser/trunk/Source/WebCore/editing/Editor.cpp?rev=117590#L2695
this problems seems to be fixed in chromium but it is still present in webkit2gtk. Seems quite impotant to me as it also affects text-areas
Looks like this got fixed at some point.
<rdar://problem/114023429>