Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: LayoutTests/fast/dynamic/first-child-display-none.html

Issue 758523002: Store :last/first-child state as restyle flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed assert Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698