diff --git a/testsuite/reftests/border-image-url-scaled.css b/testsuite/reftests/border-image-url-scaled.css
new file mode 100644
index 0000000000..4e593b882e
--- /dev/null
+++ b/testsuite/reftests/border-image-url-scaled.css
@@ -0,0 +1,30 @@
+@import "reset-to-defaults.css";
+
+.button-image {
+ border-image: -gtk-scaled(url("border-rgb.png"),url("border-rgb@2.png")) 3 stretch;
+
+
+ border-style: groove;
+ border-width: 3px 3px 3px 3px;
+}
+
+.button-not-image {
+ border-color: #ff0000;
+
+ border-style: solid;
+ border-width: 1px 1px 1px 1px;
+}
+
+.button-not-image2 {
+ border-color: #00ff00;
+
+ border-style: solid;
+ border-width: 1px 1px 1px 1px;
+}
+
+.button-not-image3 {
+ border-color: #0000ff;
+
+ border-style: solid;
+ border-width: 1px 1px 1px 1px;
+}
diff --git a/testsuite/reftests/border-image-url-scaled.ref.ui b/testsuite/reftests/border-image-url-scaled.ref.ui
new file mode 100644
index 0000000000..2b61dadeb8
--- /dev/null
+++ b/testsuite/reftests/border-image-url-scaled.ref.ui
@@ -0,0 +1,48 @@
+
+
+
+
+
diff --git a/testsuite/reftests/border-image-url-scaled.ui b/testsuite/reftests/border-image-url-scaled.ui
new file mode 100644
index 0000000000..eb275fdfce
--- /dev/null
+++ b/testsuite/reftests/border-image-url-scaled.ui
@@ -0,0 +1,22 @@
+
+
+
+
+ False
+ popup
+
+
+ reference
+ Hello World
+ True
+ True
+ True
+ True
+ False
+
+
+
+
+
diff --git a/testsuite/reftests/border-rgb.png b/testsuite/reftests/border-rgb.png
new file mode 100644
index 0000000000..0b955a7f60
Binary files /dev/null and b/testsuite/reftests/border-rgb.png differ
diff --git a/testsuite/reftests/border-rgb@2.png b/testsuite/reftests/border-rgb@2.png
new file mode 100644
index 0000000000..17a45f0d5d
Binary files /dev/null and b/testsuite/reftests/border-rgb@2.png differ