diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-horiz-001v.xhtml b/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-horiz-001v.xhtml
deleted file mode 100644
index f1dfdfdb86..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-horiz-001v.xhtml
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing flexbox layout algorithm property on block flex items in a horizontal flex container
- (with various writing-modes on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-vert-001v.xhtml b/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-vert-001v.xhtml
deleted file mode 100644
index da943dfc56..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-vert-001v.xhtml
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing flexbox layout algorithm property on block flex items in a vertical flex container
- (with various writing-modes on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-horiz-001v.xhtml b/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-horiz-001v.xhtml
deleted file mode 100644
index ad623d77f7..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-horiz-001v.xhtml
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing flexbox layout algorithm property on canvas flex items in a horizontal flex container
- (with a vertical writing-mode on the canvas flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- some words
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-vert-001v.xhtml b/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-vert-001v.xhtml
deleted file mode 100644
index 057f63ae62..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-vert-001v.xhtml
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing flexbox layout algorithm property on canvas flex items in a vertical flex container
- (with a vertical writing-mode on the canvas flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- a b
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001v.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001v.html
deleted file mode 100644
index 4cc910b9e2..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001v.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing how explicit main-size & cross-size constraints
- influence sizing on non-stretched flex item w/ intrinsic ratio
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-002v.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-002v.html
deleted file mode 100644
index 0df92f9954..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-002v.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing how explicit main-size & cross-size constraints
- influence sizing on non-stretched flex item w/ intrinsic ratio
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-003v.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-003v.html
deleted file mode 100644
index cb9275fd8c..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-003v.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing how explicit main-size & cross-size constraints
- influence sizing on stretched flex item w/ intrinsic ratio
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-004v.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-004v.html
deleted file mode 100644
index 01c5271c45..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-004v.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing how explicit main-size & cross-size constraints
- influence sizing on stretched flex item w/ intrinsic ratio
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-005v.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-005v.html
deleted file mode 100644
index ed1dcace0f..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-005v.html
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing how explicit main-size & cross-size constraints
- influence sizing on non-stretched flexible flex item w/ intrinsic ratio
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-006v.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-006v.html
deleted file mode 100644
index 8c12fad8c7..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-006v.html
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing how explicit main-size & cross-size constraints
- influence sizing on non-stretched flexible flex item w/ intrinsic ratio
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-
-
-
-

-
-
-

-
-
-

-
-
-

-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-002v.xhtml b/layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-002v.xhtml
deleted file mode 100644
index a02e3406c9..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-002v.xhtml
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing margins, borders, and padding on flex items in a horizontal flex container
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-003v.xhtml b/layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-003v.xhtml
deleted file mode 100644
index 8baef30227..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-003v.xhtml
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
- CSS Test: Testing borders and padding on a horizontal flex container and its flex items
- (with a vertical writing-mode on the flex items).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010-ref.html
deleted file mode 100644
index e488416412..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010-ref.html
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
- CSS Reftest Reference
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010.html
deleted file mode 100644
index 55c50e850f..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010.html
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
- CSS Test: Testing a mix of flex items with various values for
- 'writing-mode' / 'direction' in a horizontal row-oriented flex container.
-
-
-
-
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011-ref.html
deleted file mode 100644
index 8b926490b6..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011-ref.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
- CSS Reftest Reference
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011.html
deleted file mode 100644
index 6114e19275..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011.html
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
- CSS Test: Testing a mix of flex items with various values for
- 'writing-mode' / 'direction' in a vertical row-oriented flex container.
-
-
-
-
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012-ref.html
deleted file mode 100644
index c03358be42..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012-ref.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
- CSS Reftest Reference
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012.html
deleted file mode 100644
index a7b05f178d..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- CSS Test: Testing a mix of flex items with various values for
- 'writing-mode' / 'direction' in a vertical row-oriented flex container
- with 'direction' flipped.
-
-
-
-
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013-ref.html
deleted file mode 100644
index 2a27003a5c..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013-ref.html
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
- CSS Reftest Reference
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013.html
deleted file mode 100644
index a5d483c442..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013.html
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
- CSS Test: Testing a mix of flex items with various values for
- 'writing-mode' / 'direction' in a horizontal column-oriented flex container.
-
-
-
-
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014-ref.html
deleted file mode 100644
index 4e4f5904a1..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014-ref.html
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
- CSS Reftest Reference
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014.html
deleted file mode 100644
index 1a5443279a..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014.html
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
- CSS Test: Testing a mix of flex items with various values for
- 'writing-mode' / 'direction' in a vertical column-oriented flex container.
-
-
-
-
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015-ref.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015-ref.html
deleted file mode 100644
index a236ca11d5..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015-ref.html
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
- CSS Reftest Reference
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-
diff --git a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015.html b/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015.html
deleted file mode 100644
index af1f9b8456..0000000000
--- a/layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015.html
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
- CSS Test: Testing a mix of flex items with various values for
- 'writing-mode' / 'direction' in a vertical column-oriented flex container
- with 'direction' flipped.
-
-
-
-
-
-
-
-
-
-
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
- a b c
- d e
- a b c
- d e
- a b c
- d e
-
-
-
-