diff --git a/layout/reftests/bugs/413982-ref.html b/layout/reftests/bugs/413982-ref.html
new file mode 100644
index 00000000000..3e8af90a7e0
--- /dev/null
+++ b/layout/reftests/bugs/413982-ref.html
@@ -0,0 +1,10 @@
+
+
+
+ Bug 413982
+
+
+ This is the first line.
+ This is the second line.
+
+
diff --git a/layout/reftests/bugs/413982.html b/layout/reftests/bugs/413982.html
new file mode 100644
index 00000000000..e0502fd0dfb
--- /dev/null
+++ b/layout/reftests/bugs/413982.html
@@ -0,0 +1,25 @@
+
+
+
+ Bug 413982
+
+
+
+
+ This is
+ the first line.
+
+
+ This is the second line.
+
+
diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list
index 9f006dc805e..57bdcecb5d9 100644
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -696,6 +696,7 @@ random == 403134-1.html 403134-1-ref.html # bug 405377
== 413840-rtl-offsets.html 413840-rtl-offsets-ref.html
== 413840-pushed-line-bullet.html 413840-pushed-line-bullet-ref.html
== 413840-bullet-first-line.html 413840-bullet-first-line-ref.html
+== 413982.html 413982-ref.html
== 414123.xhtml 414123-ref.xhtml
== 414851-1.html 414851-1-ref.html
== 416106-1.xhtml 416106-1-ref.xhtml