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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 #outer { width: 100px; height: 100px }
5 span { color: white }
6 span:nth-child(2) { color: green }
7 </style>
8 <p>You should see a green square below, and no FAIL.</p>
9 <div id="outer">
10 <span id="inner">FAIL</span>
11 </div>
12 <script>
13 description("An existing LocalStyleChange on parent should not inhibit forwa rd/backward rule update on children.");
14
15 shouldBeEqualToString("getComputedStyle(inner).color", "rgb(255, 255, 255)") ;
16
17 outer.style.backgroundColor = "green";
18 outer.insertBefore(document.createElement("span"), inner);
19
20 shouldBeEqualToString("getComputedStyle(inner).color", "rgb(0, 128, 0)");
21 </script>
OLDNEW
« 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