diff --git a/layout/reftests/bugs/368504-3-ref.html b/layout/reftests/bugs/368504-3-ref.html
new file mode 100644
index 000000000000..b51009f3e47c
--- /dev/null
+++ b/layout/reftests/bugs/368504-3-ref.html
@@ -0,0 +1,24 @@
+
+
+
+
+
+
diff --git a/layout/reftests/bugs/368504-3a.html b/layout/reftests/bugs/368504-3a.html
new file mode 100644
index 000000000000..62a18e74058b
--- /dev/null
+++ b/layout/reftests/bugs/368504-3a.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+ a |
+ b |
+ c |
+
+
+   |
+
+
+
+
diff --git a/layout/reftests/bugs/368504-3b.html b/layout/reftests/bugs/368504-3b.html
new file mode 100644
index 000000000000..2ce80baafc84
--- /dev/null
+++ b/layout/reftests/bugs/368504-3b.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+ a |
+ b |
+ c |
+
+
+   |
+
+
+
+
diff --git a/layout/reftests/bugs/368504-4-ref.html b/layout/reftests/bugs/368504-4-ref.html
new file mode 100644
index 000000000000..93ef367b7ca9
--- /dev/null
+++ b/layout/reftests/bugs/368504-4-ref.html
@@ -0,0 +1,100 @@
+
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
diff --git a/layout/reftests/bugs/368504-4.html b/layout/reftests/bugs/368504-4.html
new file mode 100644
index 000000000000..15f683f8c420
--- /dev/null
+++ b/layout/reftests/bugs/368504-4.html
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bugs/368504-5-ref.html b/layout/reftests/bugs/368504-5-ref.html
new file mode 100644
index 000000000000..6b1326c8aca4
--- /dev/null
+++ b/layout/reftests/bugs/368504-5-ref.html
@@ -0,0 +1,100 @@
+
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
+ foo |
+ foo |
+
+   |   |
+
+
+
diff --git a/layout/reftests/bugs/368504-5.html b/layout/reftests/bugs/368504-5.html
new file mode 100644
index 000000000000..a297111f179d
--- /dev/null
+++ b/layout/reftests/bugs/368504-5.html
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list
index 48f0092a7308..09925c62ee0a 100644
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -383,8 +383,12 @@ random-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 368020-5.html 368020-5-ref.html # bug 3
# is too exact
# == 368247-1.html 368247-1-ref.html
== 368247-2.html 368247-2-ref.html
-fails == 368504-1.html 368504-1-ref.html # bug 368504
-fails == 368504-2.html 368504-2-ref.html # bug 368504
+fails == 368504-1.html 368504-1-ref.html
+fails == 368504-2.html 368504-2-ref.html
+fails == 368504-3a.html 368504-3-ref.html
+fails == 368504-3b.html 368504-3-ref.html
+fails == 368504-4.html 368504-4-ref.html
+fails == 368504-5.html 368504-5-ref.html
== 368622-1.html 368622-1-ref.html
== 368622-1.html 368622-1-ref.html
== 368651-1.html 368651-1-ref.html
diff --git a/layout/reftests/table-width/colspan-percent-distribution-1-ref.html b/layout/reftests/table-width/colspan-percent-distribution-1-ref.html
new file mode 100644
index 000000000000..25fa0b058e55
--- /dev/null
+++ b/layout/reftests/table-width/colspan-percent-distribution-1-ref.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/table-width/colspan-percent-distribution-1.html b/layout/reftests/table-width/colspan-percent-distribution-1.html
new file mode 100644
index 000000000000..67d9c336cc81
--- /dev/null
+++ b/layout/reftests/table-width/colspan-percent-distribution-1.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/table-width/colspan-percent-distribution-2-ref.html b/layout/reftests/table-width/colspan-percent-distribution-2-ref.html
new file mode 100644
index 000000000000..89febae2d64d
--- /dev/null
+++ b/layout/reftests/table-width/colspan-percent-distribution-2-ref.html
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+ x |
+   |
+ x |
+
+
+ x |
+ x |
+ x |
+
+
+
+
diff --git a/layout/reftests/table-width/colspan-percent-distribution-2.html b/layout/reftests/table-width/colspan-percent-distribution-2.html
new file mode 100644
index 000000000000..e019d54ec869
--- /dev/null
+++ b/layout/reftests/table-width/colspan-percent-distribution-2.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+ x |
+ x |
+
+
+ x |
+ x |
+ x |
+
+
+
+
diff --git a/layout/reftests/table-width/reftest.list b/layout/reftests/table-width/reftest.list
index 50be8fc3bf51..8bb3de47153e 100644
--- a/layout/reftests/table-width/reftest.list
+++ b/layout/reftests/table-width/reftest.list
@@ -44,3 +44,5 @@
== default-box-sizing-separate-quirks.html default-box-sizing-separate-quirks-ref.html
fails == default-box-sizing-collapse-standards.html default-box-sizing-collapse-standards-ref.html # bug 155955, bug 371180
fails == default-box-sizing-collapse-quirks.html default-box-sizing-collapse-quirks-ref.html # bug 371180
+== colspan-percent-distribution-1.html colspan-percent-distribution-1-ref.html
+== colspan-percent-distribution-2.html colspan-percent-distribution-2-ref.html