summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/style-and-stylesheet-important.html
blob: 57396e3e60aee14010cf1827519ad3a44752f5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<style>
    #p { color: red !important; }
</style>
<p id="p" style="color: green !important;">This text should be green.</p>
<script>
description("Style attribute !important wins over stylesheet !important");

shouldBeEqualToString("getComputedStyle(p).color", "rgb(0, 128, 0)");
</script>