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

Unified Diff: LayoutTests/fast/css/nth-child-dynamic-002.html

Issue 1264573004: Need to check for positional rules on parent with style change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/nth-child-dynamic-002-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/nth-child-dynamic-002.html
diff --git a/LayoutTests/fast/css/nth-child-dynamic-002.html b/LayoutTests/fast/css/nth-child-dynamic-002.html
new file mode 100644
index 0000000000000000000000000000000000000000..8cb126ee28f535e4d398095ce9f8280f5405ca30
--- /dev/null
+++ b/LayoutTests/fast/css/nth-child-dynamic-002.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+ #outer { width: 100px; height: 100px }
+ span { color: white }
+ span:nth-child(2) { color: green }
+</style>
+<p>You should see a green square below, and no FAIL.</p>
+<div id="outer">
+ <span id="inner">FAIL</span>
+</div>
+<script>
+ description("An existing LocalStyleChange on parent should not inhibit forward/backward rule update on children.");
+
+ shouldBeEqualToString("getComputedStyle(inner).color", "rgb(255, 255, 255)");
+
+ outer.style.backgroundColor = "green";
+ outer.insertBefore(document.createElement("span"), inner);
+
+ shouldBeEqualToString("getComputedStyle(inner).color", "rgb(0, 128, 0)");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/nth-child-dynamic-002-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698