diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am
index 0d03072c89..fde67cc546 100644
--- a/testsuite/reftests/Makefile.am
+++ b/testsuite/reftests/Makefile.am
@@ -305,6 +305,9 @@ testdata = \
paned-undersized.css \
paned-undersized.ref.ui \
paned-undersized.ui \
+ pseudoclass-on-parent.css \
+ pseudoclass-on-parent.ref.ui \
+ pseudoclass-on-parent.ui \
quit-mnemonic.css \
quit-mnemonic.ref.ui \
quit-mnemonic.ui \
diff --git a/testsuite/reftests/pseudoclass-on-parent.css b/testsuite/reftests/pseudoclass-on-parent.css
new file mode 100644
index 0000000000..cc1f11dc65
--- /dev/null
+++ b/testsuite/reftests/pseudoclass-on-parent.css
@@ -0,0 +1,7 @@
+:active {
+ color: blue;
+}
+
+:active * {
+ color: red;
+}
diff --git a/testsuite/reftests/pseudoclass-on-parent.ref.ui b/testsuite/reftests/pseudoclass-on-parent.ref.ui
new file mode 100644
index 0000000000..262c5118dd
--- /dev/null
+++ b/testsuite/reftests/pseudoclass-on-parent.ref.ui
@@ -0,0 +1,27 @@
+
+
+
+
+
+
diff --git a/testsuite/reftests/pseudoclass-on-parent.ui b/testsuite/reftests/pseudoclass-on-parent.ui
new file mode 100644
index 0000000000..9d54b8ef24
--- /dev/null
+++ b/testsuite/reftests/pseudoclass-on-parent.ui
@@ -0,0 +1,24 @@
+
+
+
+
+
+ False
+ popup
+
+
+ True
+ True
+ True
+ True
+
+
+ True
+ False
+ I should be red.
+
+
+
+
+
+