This testcase demonstrates the rendering and selection copy differences between FF3 and FF2 with regard to the "white-space: pre-wrap" styling.
Notables:
<br />
at the end of each line. <br />
now appear "double-spaced". <br />
on Gecko rendering engines after say, 20080529
. The rendering results are positive, but <br />
employed to break lines. To sumarize then, the rendering now follows CSS 2.1, but the selection copy to cutbuffer is nearly unchanged.
ex 1
This is line 1 in a plain p with a br before a nl at the end of the line
This is line 2 in a plain p with a br before a nl at the end of the line
This is line 3 in a plain p with a br before a nl at the end of the line
This is line 4 in a plain p with a br before a nl at the end of the line
ex 2
This is line 1 in a plain pre with a nl at the end of the line This is line 2 in a plain pre with a nl at the end of the line This is line 3 in a plain pre with a nl at the end of the line This is line 4 in a plain pre with a nl at the end of the line
NOTE: In FF3, newline characters are now honored in a style="white-space: pre-wrap".
If you're using ff2, ex 3 a will render as one long line and ex 3 b will render as "single-spaced" lines.
If you're using ff3, ex 3 a will render as "single-spaced" lines (with an extra blank line at the top) and ex 3 b will render as "double-spaced" lines (with an extra blank line at the top).
ex 3 a
ex 3 b
When these four lines are selected, copied, then pasted to a blank notepad, this is the result with FF3:
---- ex 1 - I added this line to delimit results This is line 1 in a plain p with a br before a nl at the end of the line This is line 2 in a plain p with a br before a nl at the end of the line This is line 3 in a plain p with a br before a nl at the end of the line This is line 4 in a plain p with a br before a nl at the end of the line ---- ex 1 - I added this line to delimit results ---- ex 2 - I added this line to delimit results This is line 1 in a plain pre with a nl at the end of the line This is line 2 in a plain pre with a nl at the end of the line This is line 3 in a plain pre with a nl at the end of the line This is line 4 in a plain pre with a nl at the end of the line ---- ex 2 - I added this line to delimit results ---- ex 3 a - I added this line to delimit results This is line 1 in a styled div with a nl at the end of the line This is line 2 in a styled div with a nl at the end of the line This is line 3 in a styled div with a nl at the end of the line This is line 4 in a styled div with a nl at the end of the line ---- ex 3 a - I added this line to delimit results ---- ex 3 b - I added this line to delimit results This is line 1 in a styled div with a br and nl at the end of the line This is line 2 in a styled div with a br and nl at the end of the line This is line 3 in a styled div with a br and nl at the end of the line This is line 4 in a styled div with a br and nl at the end of the line ---- ex 3 b - I added this line to delimit results
When these four lines are selected, copied, then pasted to a blank notepad, this is the result with FF2:
---- ex 1 - I added this line to delimit results This is line 1 in a plain p with a br before a nl at the end of the line This is line 2 in a plain p with a br before a nl at the end of the line This is line 3 in a plain p with a br before a nl at the end of the line This is line 4 in a plain p with a br before a nl at the end of the line ---- ex 1 - I added this line to delimit results ---- ex 2 - I added this line to delimit results This is line 1 in a plain pre with a nl at the end of the line This is line 2 in a plain pre with a nl at the end of the line This is line 3 in a plain pre with a nl at the end of the line This is line 4 in a plain pre with a nl at the end of the line ---- ex 2 - I added this line to delimit results ---- ex 3 a - I added this line to delimit results This is line 1 in a styled div with a nl at the end of the line This is line 2 in a styled div with a nl at the end of the line This is line 3 in a styled div with a nl at the end of the line This is line 4 in a styled div with a nl at the end of the line ---- ex 3 a - I added this line to delimit results ---- ex 3 b - I added this line to delimit results This is line 1 in a styled div with a br and nl at the end of the line This is line 2 in a styled div with a br and nl at the end of the line This is line 3 in a styled div with a br and nl at the end of the line This is line 4 in a styled div with a br and nl at the end of the line ---- ex 3 b - I added this line to delimit results