Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / font-property-priority.html
blob0cf9e93fd3fd09eb53482603e6448c42f0114b7e
1 <style id="style">
2 test { font-weight: bold !important; font-variant: small-caps !important; font-style: italic !important; }
3 </style>
4 <p>
5 Test for <i><a href="rdar://problem/6065547">rdar://problem/6065547</a>
6 REGRESSION (r34879): "Subject" in unread emails in Yahoo mail is not shown in bold</i>.
7 </p>
8 <pre id="console"></pre>
9 <script>
10 function log(message)
12 document.getElementById("console").appendChild(document.createTextNode(message + "\n"));
15 if (window.testRunner)
16 testRunner.dumpAsText();
18 var styleDeclaration = document.getElementById("style").sheet.rules[0].style;
20 for (var i = 0; i < styleDeclaration.length; ++i) {
21 var propertyName = styleDeclaration[i];
22 var priority = styleDeclaration.getPropertyPriority(propertyName);
23 log("Property '" + propertyName + "' has priority '" + priority + "'.");
25 </script>