Index: LayoutTests/fast/dynamic/only-child.html |
diff --git a/LayoutTests/fast/dynamic/only-child.html b/LayoutTests/fast/dynamic/only-child.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fa855520bbd9ffaca4591148cfcd9cab72809d91 |
--- /dev/null |
+++ b/LayoutTests/fast/dynamic/only-child.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<style> |
+.b:only-child { |
+ color: green; |
+} |
+</style> |
+<p id="p"><span></span><span class="b">This text should be green.</span><span></span></p> |
+<script> |
+document.body.offsetTop; |
+p.removeChild(p.firstChild); |
+p.removeChild(p.lastChild); |
+</script> |