25 lines
515 B
HTML
25 lines
515 B
HTML
<!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>
|