diff --git a/layout/reftests/css-calc/background-linear-gradient-1-ref.html b/layout/reftests/css-calc/background-linear-gradient-1-ref.html
deleted file mode 100644
index aca78d089904..000000000000
--- a/layout/reftests/css-calc/background-linear-gradient-1-ref.html
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
Test Bug 594935 - support calc() on gradient stop positions
-
-1
-2
-3
-4
-5
diff --git a/layout/reftests/css-calc/background-linear-gradient-1.html b/layout/reftests/css-calc/background-linear-gradient-1.html
deleted file mode 100644
index e86c69318e7c..000000000000
--- a/layout/reftests/css-calc/background-linear-gradient-1.html
+++ /dev/null
@@ -1,32 +0,0 @@
-
-Test Bug 594935 - support calc() on gradient stop positions
-
-1
-2
-3
-4
-5
diff --git a/layout/reftests/css-calc/reftest.list b/layout/reftests/css-calc/reftest.list
index 8b5bdb85e2b9..e9279babb4c6 100644
--- a/layout/reftests/css-calc/reftest.list
+++ b/layout/reftests/css-calc/reftest.list
@@ -1,2 +1 @@
-== background-linear-gradient-1.html background-linear-gradient-1-ref.html
random-if(bug685516) == background-image-gradient-1.html background-image-gradient-1-ref.html
diff --git a/layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1-ref.html b/layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1-ref.html
new file mode 100644
index 000000000000..aeacc4ee65ef
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1-ref.html
@@ -0,0 +1,22 @@
+
+
+
+ CSS Reference: Test for calc() on background-image gradients
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1.html b/layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1.html
new file mode 100644
index 000000000000..08d3f474cfe9
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/values3/calc-background-image-gradient-1.html
@@ -0,0 +1,22 @@
+
+
+
+ CSS Test: Test for calc() on background-image gradients
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/values3/calc-background-linear-gradient-1-ref.html b/layout/reftests/w3c-css/submitted/values3/calc-background-linear-gradient-1-ref.html
new file mode 100644
index 000000000000..9641b8654517
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/values3/calc-background-linear-gradient-1-ref.html
@@ -0,0 +1,39 @@
+
+
+ CSS Reference: Support calc() on gradient stop positions
+
+
+
+
+
+
+1
+2
+3
+4
+5
+
+