Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / cssom / cssstyledeclaration-csstext-important.html
blobc7a10643ac923dfbc119c8f38a195f68c593b166
1 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script>
4 <style>
5 #box {}
6 </style>
8 <div id="box"></div>
10 <script>
11 var style = document.getElementById('box').style;
12 test(function(){
13 style.cssText = "padding: 10px !important; padding-left: 20px;";
14 assert_equals(style.getPropertyValue("padding-left"), "10px");
15 }, "padding-left should be taken from the !important property");
16 </script>