Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / invalidation / explicit-inheritance-non-inherited.html
blob8f47e0ec84c597ed39da9936be95e7021028f59d
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.");
18 root.offsetTop; // force recalc
20 root.style.marginLeft = "1px";
22 if (window.internals)
23 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
24 </script>