2 <script src=
"../../resources/js-test.js"></script>
4 #outer { width:
100px; height:
100px }
6 span:nth-child(
2) { color: green }
8 <p>You should see a green square below, and no FAIL.
</p>
10 <span id=
"inner">FAIL
</span>
13 description("An existing LocalStyleChange on parent should not inhibit forward/backward rule update on children.");
15 shouldBeEqualToString("getComputedStyle(inner).color", "rgb(255, 255, 255)");
17 outer
.style
.backgroundColor
= "green";
18 outer
.insertBefore(document
.createElement("span"), inner
);
20 shouldBeEqualToString("getComputedStyle(inner).color", "rgb(0, 128, 0)");