diff --git a/layout/reftests/bugs/1374062-ref.html b/layout/reftests/bugs/1374062-ref.html
new file mode 100644
index 000000000000..e8b74a077a4a
--- /dev/null
+++ b/layout/reftests/bugs/1374062-ref.html
@@ -0,0 +1,8 @@
+
+
CSS Test reference
+
+
+ Should be green, and have a 10px font-size.
+
diff --git a/layout/reftests/bugs/1374062.html b/layout/reftests/bugs/1374062.html
new file mode 100644
index 000000000000..33c53b272919
--- /dev/null
+++ b/layout/reftests/bugs/1374062.html
@@ -0,0 +1,16 @@
+
+
+ Test for bug 1374062: We don't update the root font-size just because the
+ element has no parent element.
+
+
+
+ Should be green, and have a 10px font-size.
+
+
diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list
index 72c458abd894..77ee93dfb7c1 100644
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2015,3 +2015,4 @@ fails-if(!stylo||styloVsGecko) == 1365162-1.html 1365162-1-ref.html
== 1369954-1.xhtml 1369954-1-ref.xhtml
== 1369985-1.html 1369985-1-ref.html
== 1371130.xhtml 1371130-ref.xhtml
+== 1374062.html 1374062-ref.html