diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index d3476de3a8..5e83d08e41 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -29,6 +29,9 @@ EXTRA_DIST += \
box-packing.css \
box-packing.ref.ui \
box-packing.ui \
+ css-match-subtype.css \
+ css-match-subtype.ref.ui \
+ css-match-subtype.ui \
css-match-type.css \
css-match-type.ref.ui \
css-match-type.ui \
diff --git a/tests/reftests/css-match-subtype.css b/tests/reftests/css-match-subtype.css
new file mode 100644
index 0000000000..8671126874
--- /dev/null
+++ b/tests/reftests/css-match-subtype.css
@@ -0,0 +1,11 @@
+GtkContainer {
+ engine: none;
+ background-image: none;
+ background-color: green;
+ border-radius: 0;
+ border-style: none;
+}
+
+NotGtkContainer {
+ background-color: red;
+}
diff --git a/tests/reftests/css-match-subtype.ref.ui b/tests/reftests/css-match-subtype.ref.ui
new file mode 100644
index 0000000000..d8d31c3e93
--- /dev/null
+++ b/tests/reftests/css-match-subtype.ref.ui
@@ -0,0 +1,15 @@
+
+
+
+
+
diff --git a/tests/reftests/css-match-subtype.ui b/tests/reftests/css-match-subtype.ui
new file mode 100644
index 0000000000..ee6db3afc7
--- /dev/null
+++ b/tests/reftests/css-match-subtype.ui
@@ -0,0 +1,14 @@
+
+
+
+
+ 20
+ 20
+ False
+ popup
+ window
+
+
+