5 <script src=
"../../resources/js-test.js"></script>
10 description("This test verifies that acquiring the 'style' attribute via a DOM Attr node still works correctly after the inline style has been modified through the CSSOM API.");
12 var e
= document
.createElement("span");
13 e
.setAttribute("style", "background-color: white;");
14 var styleAttr
= e
.getAttributeNode("style");
15 shouldBe("styleAttr.value", "'background-color: white;'");
16 e
.style
.backgroundColor
= 'green';
17 shouldBe("styleAttr.value", "'background-color: green;'");
19 e
.style
.backgroundColor
= 'red';
20 var oldStyleAttr
= e
.setAttributeNode(document
.createAttribute("style"));
21 shouldBe("oldStyleAttr.value", "'background-color: red;'");