diff --git a/mozilla/layout/html/tests/formctls/base/button_no_margin.html b/mozilla/layout/html/tests/formctls/base/button_no_margin.html
new file mode 100644
index 00000000000..8dd0250ba62
--- /dev/null
+++ b/mozilla/layout/html/tests/formctls/base/button_no_margin.html
@@ -0,0 +1,16 @@
+
+
+Tests HTML buttons with margins, quirks mode
+
+
+
+
+
+
+
+
+
+This is text
+
+
+
diff --git a/mozilla/layout/html/tests/formctls/base/button_no_margin_strict.html b/mozilla/layout/html/tests/formctls/base/button_no_margin_strict.html
new file mode 100644
index 00000000000..3e0bed33383
--- /dev/null
+++ b/mozilla/layout/html/tests/formctls/base/button_no_margin_strict.html
@@ -0,0 +1,17 @@
+
+
+
+Tests HTML buttons with margins, quirks mode
+
+
+
+
+
+
+
+
+
+This is text
+
+
+
diff --git a/mozilla/layout/html/tests/formctls/base/button_with_margin.html b/mozilla/layout/html/tests/formctls/base/button_with_margin.html
new file mode 100644
index 00000000000..93771a44f17
--- /dev/null
+++ b/mozilla/layout/html/tests/formctls/base/button_with_margin.html
@@ -0,0 +1,16 @@
+
+
+Tests HTML buttons with margins, quirks mode
+
+
+
+
+
+
+
+
+
+This is text
+
+
+
diff --git a/mozilla/layout/html/tests/formctls/base/button_with_margin_strict.html b/mozilla/layout/html/tests/formctls/base/button_with_margin_strict.html
new file mode 100644
index 00000000000..f01c8724da0
--- /dev/null
+++ b/mozilla/layout/html/tests/formctls/base/button_with_margin_strict.html
@@ -0,0 +1,17 @@
+
+
+
+Tests HTML buttons with margins, quirks mode
+
+
+
+
+
+
+
+
+
+This is text
+
+
+
diff --git a/mozilla/layout/html/tests/formctls/base/rtest.lst b/mozilla/layout/html/tests/formctls/base/rtest.lst
index 382f867f240..1b362671c10 100644
--- a/mozilla/layout/html/tests/formctls/base/rtest.lst
+++ b/mozilla/layout/html/tests/formctls/base/rtest.lst
@@ -35,3 +35,7 @@ select_strict.html
fieldset_strict.html
legend_strict.html
isindex_strict.html
+button_no_margin.html
+button_no_margin_strict.html
+button_with_margin.html
+button_with_margin_strict.html