diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 767a4692d3..844643a491 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -152,6 +152,9 @@ EXTRA_DIST += \
style-properties-nth-child.css \
style-properties-nth-child.ref.ui \
style-properties-nth-child.ui \
+ style-properties-only-child.css \
+ style-properties-only-child.ref.ui \
+ style-properties-only-child.ui \
toplevel-vs-popup.ref.ui \
toplevel-vs-popup.ui \
unresolvable.css \
diff --git a/tests/reftests/style-properties-only-child.css b/tests/reftests/style-properties-only-child.css
new file mode 100644
index 0000000000..e652ef7615
--- /dev/null
+++ b/tests/reftests/style-properties-only-child.css
@@ -0,0 +1,9 @@
+.only-child-ref:nth-child(first):nth-child(last) {
+ color: blue;
+ background-color: red;
+}
+
+.only-child-notref:only-child {
+ color: blue;
+ background-color: red;
+}
diff --git a/tests/reftests/style-properties-only-child.ref.ui b/tests/reftests/style-properties-only-child.ref.ui
new file mode 100644
index 0000000000..ff053320aa
--- /dev/null
+++ b/tests/reftests/style-properties-only-child.ref.ui
@@ -0,0 +1,32 @@
+
+
+
+
+
diff --git a/tests/reftests/style-properties-only-child.ui b/tests/reftests/style-properties-only-child.ui
new file mode 100644
index 0000000000..0f769cf5ce
--- /dev/null
+++ b/tests/reftests/style-properties-only-child.ui
@@ -0,0 +1,32 @@
+
+
+
+
+ False
+ popup
+ 300
+ 300
+
+
+ True
+ False
+ vertical
+
+
+ True
+ True
+ Foo
+
+
+
+ False
+ True
+ 0
+
+
+
+
+
+