2 <script src=
"../../../resources/js-test.js"></script>
4 #root { background-color: red }
5 .inherit { background-color: inherit }
10 <div id=
"inner" class=
"inherit"></div>
23 root
.offsetTop
; // force recalc
25 root
.style
.background
= "green";
27 // The #root element, elements with .inherited and their siblings (5 in total) will need a recalc.
29 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5");
31 var green
= "rgb(0, 128, 0)";
32 shouldBe("getComputedStyle(inner).backgroundColor", "green");