5 <script src=
"../../resources/js-test.js"></script>
10 description("Tests that querying the priority for a shorthand works.");
12 var testContainer
= document
.createElement("div");
13 document
.body
.appendChild(testContainer
);
15 testContainer
.innerHTML
= '<div id="test">hello</div>';
17 e
= document
.getElementById('test');
20 e
.style
.setProperty("border-bottom-style", "solid", "important");
21 shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'");
22 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "'important'");
24 e
.style
.borderBottomStyle
= "";
25 e
.style
.border
= "20px solid green";
26 shouldBe("e.style.getPropertyValue('border')", "'20px solid green'");
27 shouldBe("e.style.getPropertyPriority('border')", "''");
30 e
.style
.setProperty("border", "20px solid green", "important");
31 shouldBe("e.style.getPropertyValue('border')", "'20px solid green'");
32 shouldBe("e.style.getPropertyPriority('border')", "'important'");
34 document
.body
.removeChild(testContainer
);