Chromium Code Reviews| Index: LayoutTests/fast/dynamic/last-child-display-none.html |
| diff --git a/LayoutTests/fast/dynamic/last-child-display-none.html b/LayoutTests/fast/dynamic/last-child-display-none.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e0246c51e88c4bac9be8b71db9959677684765e4 |
| --- /dev/null |
| +++ b/LayoutTests/fast/dynamic/last-child-display-none.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +p:last-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.appendChild(document.createElement("p")); |
| +</script> |