diff --git a/layout/reftests/xul/colors-16x8-noSize.svg b/layout/reftests/xul/colors-16x8-noSize.svg
deleted file mode 100644
index db715d875ee4..000000000000
--- a/layout/reftests/xul/colors-16x8-noSize.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
diff --git a/layout/reftests/xul/colors-16x8-parDefault.svg b/layout/reftests/xul/colors-16x8-parDefault.svg
deleted file mode 100644
index 1b0bca07375a..000000000000
--- a/layout/reftests/xul/colors-16x8-parDefault.svg
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
diff --git a/layout/reftests/xul/colors-16x8.png b/layout/reftests/xul/colors-16x8.png
deleted file mode 100644
index bd238458713f..000000000000
Binary files a/layout/reftests/xul/colors-16x8.png and /dev/null differ
diff --git a/layout/reftests/xul/colors-16x8.svg b/layout/reftests/xul/colors-16x8.svg
deleted file mode 100644
index 08e36594026d..000000000000
--- a/layout/reftests/xul/colors-16x8.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
diff --git a/layout/reftests/xul/colors-8x16-noSize.svg b/layout/reftests/xul/colors-8x16-noSize.svg
deleted file mode 100644
index e741537b9307..000000000000
--- a/layout/reftests/xul/colors-8x16-noSize.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
diff --git a/layout/reftests/xul/colors-8x16-parDefault.svg b/layout/reftests/xul/colors-8x16-parDefault.svg
deleted file mode 100644
index ec8c59dcbdbe..000000000000
--- a/layout/reftests/xul/colors-8x16-parDefault.svg
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
diff --git a/layout/reftests/xul/colors-8x16.png b/layout/reftests/xul/colors-8x16.png
deleted file mode 100644
index 596fdb389d6c..000000000000
Binary files a/layout/reftests/xul/colors-8x16.png and /dev/null differ
diff --git a/layout/reftests/xul/colors-8x16.svg b/layout/reftests/xul/colors-8x16.svg
deleted file mode 100644
index c336e3af1bd6..000000000000
--- a/layout/reftests/xul/colors-8x16.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
diff --git a/layout/reftests/xul/generate-object-fit-xul-tests.sh b/layout/reftests/xul/generate-object-fit-xul-tests.sh
deleted file mode 100644
index f524d3b2cf27..000000000000
--- a/layout/reftests/xul/generate-object-fit-xul-tests.sh
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/bash
-#
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-#
-# Script to generate XUL reftest files, from corresponding reftest
-# files that use .
-#
-# This script expects to be run from this working directory:
-# mozilla-central/layout/reftests/w3c-css/submitted/images3
-
-XUL_REFTEST_PATH="../../../xul"
-
-imageFileArr=("colors-16x8.png" "colors-8x16.png"
- "colors-16x8.svg" "colors-8x16.svg"
- "colors-16x8-noSize.svg" "colors-8x16-noSize.svg"
- "colors-16x8-parDefault.svg" "colors-8x16-parDefault.svg")
-numImageFiles=${#imageFileArr[@]}
-
-# Copy image files
-for ((i = 0; i < $numImageFiles; i++)); do
- imageFileName=${imageFileArr[$i]}
- imageDest=$XUL_REFTEST_PATH/$imageFileName
-
- echo "Copying $imageDest."
- hg cp support/$imageFileName $imageDest
-done
-
-# Add comment & default-preferences line to reftest.list in dest directory:
-reftestListFileName="$XUL_REFTEST_PATH/reftest.list"
-echo "
-# Tests for XUL with 'object-fit' & 'object-position':
-# These tests should be very similar to tests in our w3c-css/submitted/images3
-# reftest directory. They live here because they use XUL, and it
-# wouldn't be fair of us to make a W3C testsuite implicitly depend on XUL.
-default-preferences test-pref(layout.css.object-fit-and-position.enabled,true)"\
- >> $reftestListFileName
-
-# Loop across all object-fit tests that use ("i" suffix):
-for origTestName in object-fit*i.html; do
- newTestName=$(echo $origTestName |
- sed "s/i.html/.xul/")
-
- # Find the corresponding reference case:
- referenceName=$(echo $origTestName |
- sed "s/i.html/-ref.html/")
-
- # Generate reference file (dropping "support" subdir from image paths):
- echo "Copying $referenceName to $XUL_REFTEST_PATH."
- newReferenceFullPath=$XUL_REFTEST_PATH/$referenceName
- hg cp $referenceName $newReferenceFullPath
- sed -i "s,support/,," $newReferenceFullPath
-
- # Generate testcase
- # (converting