Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / legacy-opacity-styles.html
blob9a182265961b2abcef4a4a75c18b588dd3c36d62
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
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>
11 <script>
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'");
19 </script>
20 </body>
21 </html>