Html程序  |  24行  |  629 B

<html>
<head>
<link rel="stylesheet" type="text/css" href="resources/aFileThatProbablyDoesNotExist.css">
<style type="text/css">
    div:first-line { color: green; }
</style>
</head>
<body>
    <p>
        Regression test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=8760">http://bugs.webkit.org/show_bug.cgi?id=8760</a>
        crash (hang?) on subtlegradient.com article page</i>.
    </p>
    <p>
        No crash means test PASS.
    </p>
    <hr>
    <div>
        <span id="t">Lorem ipsum</span>
    </div>
    <script type="text/javascript">
        document.getElementById("t").offsetTop;
    </script>
</body>