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

Unified Diff: LayoutTests/fast/dynamic/only-child.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/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>

Powered by Google App Engine
This is Rietveld 408576698