diff --git a/testsuite/reftests/transform-origin.css b/testsuite/reftests/transform-origin.css
new file mode 100644
index 0000000000..554321f815
--- /dev/null
+++ b/testsuite/reftests/transform-origin.css
@@ -0,0 +1,15 @@
+@import "reset-to-defaults.css";
+
+window {
+ background: yellow;
+}
+
+#box {
+ transform-origin: top left;
+ transform: rotate(-90deg);
+ background: linear-gradient(to bottom, red 0%, blue 100%);
+}
+
+#reference {
+ background: linear-gradient(to right, red 0%, blue 100%);
+}
diff --git a/testsuite/reftests/transform-origin.ref.ui b/testsuite/reftests/transform-origin.ref.ui
new file mode 100644
index 0000000000..656781692f
--- /dev/null
+++ b/testsuite/reftests/transform-origin.ref.ui
@@ -0,0 +1,17 @@
+
+
+
+
diff --git a/testsuite/reftests/transform-origin.ui b/testsuite/reftests/transform-origin.ui
new file mode 100644
index 0000000000..889202973f
--- /dev/null
+++ b/testsuite/reftests/transform-origin.ui
@@ -0,0 +1,17 @@
+
+
+
+ 0
+ 300
+ 300
+
+
+ box
+ center
+ center
+ 100
+ 100
+
+
+
+