haikuwebkit/LayoutTests/fast/css/important-js-override.html

9 lines
318 B
HTML

<div id="a" style="background-color: red !important">The background of this element should be green. It is </div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var a = document.getElementById("a");
a.style.backgroundColor = "green";
a.innerHTML += a.style.backgroundColor;
</script>