valid-standard-font.html 623 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<html>
<body style="font-family:-webkit-body">
<!-- WebKit assumes that -webkit-body is a valid font. The font-family:inherit will crash on load if it isn't -->
<input style="font-family:inherit"/>
<script>
    if (window.layoutTestController) {
        layoutTestController.dumpAsText();
        layoutTestController.waitUntilDone();
    }
    window.setTimeout(runTest, 0);
    function runTest() {
        document.getElementById("result").innerText = "PASS";
        if (window.layoutTestController) {
            layoutTestController.notifyDone();
        }
    }
</script>
<div id="result">FAIL</div>
</body>
</html>