<input value=" foo bar "> doesn't show the leading and trailing spaces in the text field.
The contenteditable version of this bug is <div contenteditable> lorem ipsum </div> where the outer spaces are initially invisible, but when you add a space at the beginning/end you get two spaces to show.
Created attachment 7726 [details] Possible fix for the text field case
I think the best way to fix this is to use the appropriate whitespace mode inside the text fields. Assuming there is an appropriate whitespace mode.
mitz and i talked about using whitespace:pre for the inner div, instead of just whitespace:nowrap. i will investigate.
Created attachment 7794 [details] patch to set white-space:pre
Comment on attachment 7794 [details] patch to set white-space:pre I'll need to re-generate pixel results for this test on a PPC machine before checking in.
Comment on attachment 7794 [details] patch to set white-space:pre r=me