diff --git a/layout/reftests/bugs/384876-1-ref.html b/layout/reftests/bugs/384876-1-ref.html
new file mode 100644
index 000000000000..e3fc7e061696
--- /dev/null
+++ b/layout/reftests/bugs/384876-1-ref.html
@@ -0,0 +1,37 @@
+
+
+ Width:auto and padding
+
+
+
+
+The bottom border should end with my text (overflow:hidden)
+
+The bottom border should end with my text (overflow:visible)
+
+The bottom border should end with my text (overflow:auto)
+
+The bottom border should end with my text (no overflow defined)
+
+
+
+
diff --git a/layout/reftests/bugs/384876-1.html b/layout/reftests/bugs/384876-1.html
new file mode 100644
index 000000000000..06a359230623
--- /dev/null
+++ b/layout/reftests/bugs/384876-1.html
@@ -0,0 +1,41 @@
+
+
+ Width:auto and padding
+
+
+
+
+The bottom border should end with my text (overflow:hidden)
+
+The bottom border should end with my text (overflow:visible)
+
+The bottom border should end with my text (overflow:auto)
+
+The bottom border should end with my text (no overflow defined)
+
+
+
+
diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list
index 0af52dbd47bc..15b70cf243df 100644
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -277,5 +277,6 @@ random-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 379316-2.html 379316-2-ref.html # bug
== 382600-1.html 382600-1-ref.html
== 383551-1.html 383551-1-ref.html
== 384576-1.html 384576-1-ref.html
+== 384876-1.html 384876-1-ref.html
== 386920-1.html 386920-1-ref.html
== 387344-1.html 387344-1-ref.html