diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 216888507c..44d400ee55 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -35,6 +35,9 @@ EXTRA_DIST += \
css-match-descendant-later.css \
css-match-descendant-later.ref.ui \
css-match-descendant-later.ui \
+ css-match-exact.css \
+ css-match-exact.ref.ui \
+ css-match-exact.ui \
css-match-name.css \
css-match-name.ref.ui \
css-match-name.ui \
diff --git a/tests/reftests/css-match-exact.css b/tests/reftests/css-match-exact.css
new file mode 100644
index 0000000000..c84ffe99a9
--- /dev/null
+++ b/tests/reftests/css-match-exact.css
@@ -0,0 +1,3 @@
+GtkGrid {
+ background-color: purple;
+}
diff --git a/tests/reftests/css-match-exact.ref.ui b/tests/reftests/css-match-exact.ref.ui
new file mode 100644
index 0000000000..2f24fa197b
--- /dev/null
+++ b/tests/reftests/css-match-exact.ref.ui
@@ -0,0 +1,13 @@
+
+
+
+
+
diff --git a/tests/reftests/css-match-exact.ui b/tests/reftests/css-match-exact.ui
new file mode 100644
index 0000000000..1c39ba740e
--- /dev/null
+++ b/tests/reftests/css-match-exact.ui
@@ -0,0 +1,30 @@
+
+
+
+
+