summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/dfn-default-font-style.html
blob: cd316159eb073b31d67518b0dac986eb1b3d5d19 (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
<!DOCTYPE html>
<html>
<body>
This test ensures that whatever written within dfn tag is italicized. <br>
For example the <dfn id="dfntag">dfn</dfn> should be italicized.

<script>
var dfnfont = document.defaultView.getComputedStyle(document.getElementById('dfntag'), "").getPropertyValue("font-style");
var testresult;

if (dfnfont == 'italic')
    testresult = 'PASS';
else
    testresult = 'FAIL';

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

document.writeln(testresult);

</script>
</body>
</html>