Index: LayoutTests/fast/dynamic/first-child-display-none.html |
diff --git a/LayoutTests/fast/dynamic/first-child-display-none.html b/LayoutTests/fast/dynamic/first-child-display-none.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..690414773eab6ea350fc101009f2f40b54193f33 |
--- /dev/null |
+++ b/LayoutTests/fast/dynamic/first-child-display-none.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<style> |
+p:first-child { |
+ display:none; |
+} |
+</style> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+</script> |
+<p>You should see the word 'PASS' below:</p> |
+<div id="container"> |
+ <p>PASS</p> |
+</div> |
+<script> |
+container.offsetTop; |
+container.insertBefore(document.createElement("p"), container.querySelector("p")); |
+</script> |