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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/reschedule-for-removed-sibling.html

Issue 2592423002: Reschedule sibling invalidations as descendant on removal. (Closed)
Patch Set: Moved DCHECK. Created 3 years, 12 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 | third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h » ('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/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <style>
5 div {
6 background-color: green;
7 width: 100px;
8 height: 100px;
9 }
10 .red + div { background-color: red }
11 </style>
12 <p>You should see a green square below.</p>
13 <div id="toRemove" class="red"></div>
14 <div id="sibling"></div>
15 <script>
16 test(() => {
17 assert_equals(getComputedStyle(sibling).backgroundColor, "rgb(255, 0, 0) ", "Background is initially red.");
18 }, "Initial background color.");
19
20 test(() => {
21 toRemove.className = "";
22 toRemove.remove();
23 assert_equals(getComputedStyle(sibling).backgroundColor, "rgb(0, 128, 0) ", "Background is green after sibling is removed.");
24 }, "Background color changed after sibling removed.");
25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698