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

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

Issue 921843004: Stop explicit inheritance if LayoutStyle doesn't change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 </style>
7 <div id="root">
8 <div>
9 <span></span>
10 <span></span>
11 <span></span>
12 <span></span>
13 </div>
14 </div>
15 <script>
16 description("Inheritance-propagation should stop when there is no style diff.");
17
18 root.offsetTop; // force recalc
19
20 root.style.marginLeft = "1px";
21
22 if (window.internals)
23 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698