diff --git a/layout/html/document/src/ua.css b/layout/html/document/src/ua.css
index 9685b030197..07fec5f98f8 100644
--- a/layout/html/document/src/ua.css
+++ b/layout/html/document/src/ua.css
@@ -103,6 +103,15 @@ plaintext, xmp, pre {
white-space: pre;
margin: 1em 0;
}
+pre[wrap] {
+ white-space: -moz-pre-wrap;
+}
+pre[cols] {
+ white-space: -moz-pre-wrap;
+}
+pre[width] {
+ white-space: -moz-pre-wrap;
+}
multicol {
display: block;
margin: 1em 0;
diff --git a/layout/style/ua.css b/layout/style/ua.css
index 9685b030197..07fec5f98f8 100644
--- a/layout/style/ua.css
+++ b/layout/style/ua.css
@@ -103,6 +103,15 @@ plaintext, xmp, pre {
white-space: pre;
margin: 1em 0;
}
+pre[wrap] {
+ white-space: -moz-pre-wrap;
+}
+pre[cols] {
+ white-space: -moz-pre-wrap;
+}
+pre[width] {
+ white-space: -moz-pre-wrap;
+}
multicol {
display: block;
margin: 1em 0;