diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1-ref.html
new file mode 100644
index 000000000000..60da9430d411
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1-ref.html
@@ -0,0 +1,62 @@
+
+
+
+
+
+ CSS Reftest Reference
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1.html
new file mode 100644
index 000000000000..0ce882cf7630
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1.html
@@ -0,0 +1,54 @@
+
+
+
+
+ CSS Test: Testing that a collapsed flex item participates in baseline alignment only for the purpose of establishing container's cross size
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-1-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-1-ref.html
new file mode 100644
index 000000000000..90131878421d
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-1-ref.html
@@ -0,0 +1,102 @@
+
+
+
+
+
+ CSS Reftest Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-1.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-1.html
new file mode 100644
index 000000000000..da6c5f144bc8
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-1.html
@@ -0,0 +1,98 @@
+
+
+
+
+ CSS Test: Testing that visibility:collapse on a flex item in a single-line flex container maintains the containers's cross size, but doesn't otherwise impact flex layout
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-2-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-2-ref.html
new file mode 100644
index 000000000000..a9040e306c8c
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-2-ref.html
@@ -0,0 +1,108 @@
+
+
+
+
+ CSS Reftest Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-2.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-2.html
new file mode 100644
index 000000000000..49c3bf1cf096
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-2.html
@@ -0,0 +1,111 @@
+
+
+
+
+ CSS Test: Testing that visibility:collapse on a flex item in a multi-line flex container creates struts, and that they can migrate between lines
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-3-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-3-ref.html
new file mode 100644
index 000000000000..c8242106ba14
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-3-ref.html
@@ -0,0 +1,46 @@
+
+
+
+
+ CSS Reftest Reference
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-3.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-3.html
new file mode 100644
index 000000000000..f8811c35b91e
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-3.html
@@ -0,0 +1,56 @@
+
+
+
+
+ CSS Test: Testing that strut formation (from visibility:collapse) happens *after* lines have been stretched
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/flexbox/reftest.list b/layout/reftests/w3c-css/submitted/flexbox/reftest.list
index ca894672fa89..14e26487c3d6 100644
--- a/layout/reftests/w3c-css/submitted/flexbox/reftest.list
+++ b/layout/reftests/w3c-css/submitted/flexbox/reftest.list
@@ -77,6 +77,12 @@ fuzzy-if(Android,158,32) == flexbox-align-self-vert-rtl-1.xhtml flexbox-align-s
== flexbox-break-request-vert-2a.html flexbox-break-request-vert-2-ref.html
== flexbox-break-request-vert-2b.html flexbox-break-request-vert-2-ref.html
+# Tests for flex items with "visibility:collapse"
+== flexbox-collapsed-item-baseline-1.html flexbox-collapsed-item-baseline-1-ref.html
+== flexbox-collapsed-item-horiz-1.html flexbox-collapsed-item-horiz-1-ref.html
+== flexbox-collapsed-item-horiz-2.html flexbox-collapsed-item-horiz-2-ref.html
+== flexbox-collapsed-item-horiz-3.html flexbox-collapsed-item-horiz-3-ref.html
+
# Tests for flex-flow shorthand property
== flexbox-flex-flow-1.html flexbox-flex-flow-1-ref.html