diff --git a/layout/reftests/bugs/374719-1-css.css b/layout/reftests/bugs/374719-1-css.css
new file mode 100644
index 000000000000..403f5c1e1dfe
--- /dev/null
+++ b/layout/reftests/bugs/374719-1-css.css
@@ -0,0 +1,61 @@
+gridlikebox {
+ margin: 2px 4px;
+ background-color: -moz-Field;
+ color: -moz-FieldText;
+ -moz-binding: url('374719-1-xbl.xml#gridlike');
+ -moz-user-focus: normal;
+ -moz-appearance: listbox;
+}
+
+gridlikehead {
+ -moz-binding: url("374719-1-xbl.xml#gridlikehead");
+}
+
+gridlikebox > scrollbox > box {
+ display: -moz-grid;
+}
+
+gridlikecols, gridlikehead, gridlikerows, gridlikeboxbody {
+ display: -moz-grid-group;
+}
+
+gridlikecol, gridlikeitem, gridlikeheaditem {
+ display: -moz-grid-line;
+}
+
+gridlikehead {
+ -moz-box-orient: vertical;
+}
+
+gridlikerows {
+ -moz-box-orient: vertical;
+ -moz-box-flex: 1;
+}
+
+gridlikeboxbody {
+ -moz-box-orient: vertical;
+ -moz-box-flex: 1;
+}
+
+gridlikecol {
+ -moz-box-orient: vertical;
+ min-width: 16px;
+}
+
+gridlikeheader {
+ -moz-binding: url("chrome://global/content/bindings/listbox.xml#listheader");
+ -moz-box-ordinal-group: 2147483646;
+}
+
+gridlikeheader {
+ -moz-appearance: treeheadercell;
+ -moz-box-align: center;
+ border: 2px solid;
+ -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
+ -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
+ -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
+ -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
+ background-color: -moz-Dialog;
+ color: -moz-DialogText;
+ padding: 0 4px;
+}
diff --git a/layout/reftests/bugs/374719-1-ref.xul b/layout/reftests/bugs/374719-1-ref.xul
new file mode 100644
index 000000000000..1a1fa070d6be
--- /dev/null
+++ b/layout/reftests/bugs/374719-1-ref.xul
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bugs/374719-1-xbl.xml b/layout/reftests/bugs/374719-1-xbl.xml
new file mode 100644
index 000000000000..b56587c58766
--- /dev/null
+++ b/layout/reftests/bugs/374719-1-xbl.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bugs/374719-1.xul b/layout/reftests/bugs/374719-1.xul
new file mode 100644
index 000000000000..f007aa729c16
--- /dev/null
+++ b/layout/reftests/bugs/374719-1.xul
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list
index f36b3384ed94..4cc71e9258d4 100644
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -560,6 +560,7 @@ random-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 368020-5.html 368020-5-ref.html # bug 3
== 372768-1.html 372768-1-ref.html
== 373383-1.html 373383-1-ref.html
== 374038-1.xul 374038-1-ref.xul
+== 374719-1.xul 374719-1-ref.xul
== 374038-2.xul 374038-2-ref.xul
fails == 374927-1.html 374927-1-ref.html # Was broken by patch for bug 368600; fails until bug 400776 is fixed
== 375716-1.html 375716-1-ref.html