summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/font-property-priority.html
blob: 0cf9e93fd3fd09eb53482603e6448c42f0114b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<style id="style">
    test { font-weight: bold !important; font-variant: small-caps !important; font-style: italic !important; }
</style>
<p>
    Test for <i><a href="rdar://problem/6065547">rdar://problem/6065547</a>
    REGRESSION (r34879): "Subject" in unread emails in Yahoo mail is not shown in bold</i>.
</p>
<pre id="console"></pre>
<script>
    function log(message)
    {
        document.getElementById("console").appendChild(document.createTextNode(message + "\n"));
    }

    if (window.testRunner)
        testRunner.dumpAsText();

    var styleDeclaration = document.getElementById("style").sheet.rules[0].style;

    for (var i = 0; i < styleDeclaration.length; ++i) {
        var propertyName = styleDeclaration[i];
        var priority = styleDeclaration.getPropertyPriority(propertyName);
        log("Property '" + propertyName + "' has priority '" + priority + "'.");
    }
</script>