1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <div id=
"test-opacity" style=
"opacity: 0.2;"></div>
8 <div id=
"test-webkit-opacity" style=
"-webkit-opacity: 0.8;"></div>
9 <p id=
"description"></p>
10 <div id=
"console"></div>
12 description("This test checks that the legacy -webkit-opacity style is mapped to the opacity style.");
14 shouldBe("document.getElementById('test-opacity').style.getPropertyValue('opacity')", "'0.2'");
15 shouldBe("document.getElementById('test-opacity').style.getPropertyValue('-webkit-opacity')", "'0.2'");
17 shouldBe("document.getElementById('test-webkit-opacity').style.getPropertyValue('opacity')", "'0.8'");
18 shouldBe("document.getElementById('test-webkit-opacity').style.getPropertyValue('-webkit-opacity')", "'0.8'");