diff --git a/layout/html/tests/table/collapsing_borders/bug41262-1.html b/layout/html/tests/table/collapsing_borders/bug41262-1.html
new file mode 100644
index 00000000000..7b9d5a0cbae
--- /dev/null
+++ b/layout/html/tests/table/collapsing_borders/bug41262-1.html
@@ -0,0 +1,49 @@
+
+
+
Untitled
+
+
+
+
+
+
+
+
+ foo
+ bar
+
+ foo
+ bar
+
+
+
+
+ foo
+ bar
+
+ foo
+ bar
+
+
+
+
+ foo
+ bar
+
+ foo
+ bar
diff --git a/layout/html/tests/table/collapsing_borders/bug41262-2.html b/layout/html/tests/table/collapsing_borders/bug41262-2.html
new file mode 100644
index 00000000000..4236eb84030
--- /dev/null
+++ b/layout/html/tests/table/collapsing_borders/bug41262-2.html
@@ -0,0 +1,161 @@
+
+
+border-collapse testfiles
+
+
+
+
+border-collapse testfiles
+quirks mode
+bugzilla testcases
+worth reading
+
diff --git a/layout/html/tests/table/collapsing_borders/bug41262-3.html b/layout/html/tests/table/collapsing_borders/bug41262-3.html
new file mode 100644
index 00000000000..c6ca52daa99
--- /dev/null
+++ b/layout/html/tests/table/collapsing_borders/bug41262-3.html
@@ -0,0 +1,108 @@
+
+
+Collapsing Border Test Case
+
+
+
+
+
+Following table should have 6px solid blue border around cell 3, red 5px
+solid border around the rest of table and green 4px solid border between cell 1
+and cell 2. The red border should override the green border around the cells
+because it's thicker and the blue border should override the red border for the
+same reason.
+
+
+
+ Cell #1
+ Cell #2
+ Cell #3
+See 17.6.2 The
+collapsing border model for following tests:
+
+
+
+
+
+
+
+ 1
+ 2
+ 3
+
+ 4
+ 5
+ 6
+
+ 7
+ 8
+ 9
+
+ 10
+ 11
+ 12
+
+ 13
+ 14
+ 15
+This is an example rendering for the previous table from http://www.w3.org/TR/REC-CSS2/images/tbl-border-conflict.gif :
+
+Following table should have 2px solid black line between rows. There should
+be a total of two lines. There will be three lines if user agent doesn't support
+tr:first-child
.
+
+
+
+ a
+ b
+ c
+
+ 3
+ 4
+ 5
+
+ 5
+ 12
+ 13
diff --git a/layout/html/tests/table/collapsing_borders/bug41262-4.html b/layout/html/tests/table/collapsing_borders/bug41262-4.html
new file mode 100644
index 00000000000..36a67f0f849
--- /dev/null
+++ b/layout/html/tests/table/collapsing_borders/bug41262-4.html
@@ -0,0 +1,26 @@
+
+
+borderCollapse
+
+
+
+
+
+
+
+
+
+
+ EST
+ 9:00 a.m.
+
+ CST
+ 8:00 a.m.
+
+ PST
+ 6:00 a.m.
+
+
diff --git a/layout/html/tests/table/collapsing_borders/bug41262-5.html b/layout/html/tests/table/collapsing_borders/bug41262-5.html
new file mode 100644
index 00000000000..4500b9c6b18
--- /dev/null
+++ b/layout/html/tests/table/collapsing_borders/bug41262-5.html
@@ -0,0 +1,40 @@
+
+
+rules Property
+
+
+
+
+
+
+
+ EST
+ 1am
+ 8pm
+
+
+ CST
+ 2am
+ 9pm
+
+ MST
+ 3am
+ 10pm
+
+
+ PST
+ 4am
+ 11pm
+No
+borders Exterior
+border All
+borders Column
+borders Groups
+borders Table
+row borders
diff --git a/layout/html/tests/table/collapsing_borders/bug41262-6.html b/layout/html/tests/table/collapsing_borders/bug41262-6.html
new file mode 100644
index 00000000000..8ed79a7dbb4
--- /dev/null
+++ b/layout/html/tests/table/collapsing_borders/bug41262-6.html
@@ -0,0 +1,40 @@
+
+
+RULES with BORDER property
+
+
+
+
+
+
+
+ EST
+ 1am
+ 8pm
+
+
+ CST
+ 2am
+ 9pm
+
+ MST
+ 3am
+ 10pm
+
+
+ PST
+ 4am
+ 11pm
+No
+borders Exterior
+border All
+borders Column
+borders Groups
+borders Table
+row borders
diff --git a/layout/html/tests/table/images/tbl-border-conflict.gif b/layout/html/tests/table/images/tbl-border-conflict.gif
new file mode 100644
index 00000000000..fc5d001e753
Binary files /dev/null and b/layout/html/tests/table/images/tbl-border-conflict.gif differ