diff --git a/layout/html/document/src/ua.css b/layout/html/document/src/ua.css
index 6f21e7b7a8f..4e6997518a0 100644
--- a/layout/html/document/src/ua.css
+++ b/layout/html/document/src/ua.css
@@ -40,6 +40,12 @@
@namespace parsererror url(http://www.mozilla.org/newlayout/xml/parsererror.xml);
+/* defaults for the root element that are easier to specify here than in
+ C++ code */
+*|*:root {
+ quotes: "\201C" "\201D" "\2018" "\2019";
+}
+
/* magic -- some of these rules are important to keep pages from overriding
them
*/
diff --git a/layout/style/ua.css b/layout/style/ua.css
index 6f21e7b7a8f..4e6997518a0 100644
--- a/layout/style/ua.css
+++ b/layout/style/ua.css
@@ -40,6 +40,12 @@
@namespace parsererror url(http://www.mozilla.org/newlayout/xml/parsererror.xml);
+/* defaults for the root element that are easier to specify here than in
+ C++ code */
+*|*:root {
+ quotes: "\201C" "\201D" "\2018" "\2019";
+}
+
/* magic -- some of these rules are important to keep pages from overriding
them
*/