Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / css-inline-style-important.html
blob2b606ff1015a1afc2540c041fc7df36313abd60c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script>
6 <style type="text/css">
7 #e { color:red; visibility: hidden;}
8 </style>
9 </head>
10 <body>
11 <p id="e">This is the test element.</p>
12 <script>
14 description("This test checks to see whether setting a CSS value including !important on an inline style property fails (as it should).");
16 var e = document.getElementById('e');
17 e.style.color = "green !important";
19 shouldBe('window.getComputedStyle(e).color', '"rgb(255, 0, 0)"');
21 </script>
22 </body>
23 </html>