chromium/third_party/blink/web_tests/fast/dom/compatMode-Strict.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script>
function debug(str) {
    pre = document.getElementById('console');
    text = document.createTextNode(str + '\n');
    pre.appendChild(text);
}

function runTests() {
    if (window.testRunner)
        testRunner.dumpAsText();

    if (document.compatMode == "CSS1Compat")
        debug('SUCCESS')
    else
        debug('FAILURE')
}

</script>
</head>
<body onload="runTests();">
This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in strict mode). If the test is successful, the text below should say "SUCCESS".
<pre id="console">
</pre>
</body>
</html>