-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Am 25.04.2006 um 06:32 schrieb Jeremy Seitz [foz]:

+pre {
+       white-space: pre; /* CSS2 */
+       white-space: -moz-pre-wrap; /* Mozilla */
+       white-space: -hp-pre-wrap; /* HP printers */
+       white-space: -o-pre-wrap; /* Opera 7 */
+       white-space: -pre-wrap; /* Opera 4-6 */
+       white-space: pre-wrap; /* CSS 2.1 */
+       white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
+       word-wrap: break-word; /* IE */
+
+}

beside that is not valid [1], there is another problem:

In The first line you tell the browser not to wrap at box borders (which is the normal behaviour for <pre> tag by design and meaning of <pre>). In the next lines you try to tell some browsers not to behave as assumed for <pre> and the former statement "white-space: pre".

Using <pre> in HTML means: print exactly as is and not different. This also means copy and paste program code poems or whatever will result in a nearly exact copy of the code original put into the HTML, if your browser and the editor handle pasting well. So using <pre> and telling the browser not to honour that at all by css is a contradiction in terms.

There might be another solution in presenting the bug reports, but using <pre> and CSS telling the browser not to use <pre> at all is not the right way, I think.

[1] See URL http://www.witch.westfalen.de/csstest/wrap/wrap-pre.html for an example and the jigsaw valitation results for it at URL http:// jigsaw.w3.org/css-validator/validator?uri=http:// www.witch.westfalen.de/csstest/wrap/wrap-pre.html


greetings

Jutta

- -- http://www.witch.westfalen.de
http://witch.muensterland.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iEYEARECAAYFAkROElgACgkQOgZ5N97kHkfSfgCfYV9t2vheRpdV1Uptrp0LpHFd
QIEAoL34qUZUp6bkUrIzOyAD+Yv7O2fd
=EmM3
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to