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

Side by Side Diff: LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-hover.html

Issue 921843004: Stop explicit inheritance if LayoutStyle doesn't change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Corrected and documented flag copying/comparisons Created 5 years, 10 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 html { background-color: green }
5 * { background-color: inherit }
6 .a:hover.b { background-color: green }
7 </style>
8 <div id="root">
9 <div>
10 <span></span>
11 <span></span>
12 <span></span>
13 <span></span>
14 </div>
15 </div>
16 <script>
17 description("Inheritance-propagation should stop when there is no style diff and the affected-by-hover flag changes.");
18
19 root.offsetTop; // force recalc
20
21 root.className = "a b";
22
23 if (window.internals)
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698