910e62b5创建于 1月15日历史提交
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    <link rel="stylesheet" type="text/css" href="css-link-charset.css" charset="utf-8">
</head>
<body onload="test()">
<p>Test to see if the charset property in a link works properly.</p>
<p id="result"></p>
<script>
function test() {
    if (window.testRunner)
        testRunner.dumpAsText();
    try {
        text = document.styleSheets[0].rules[0].style.cssText;
        if (text.match('.*SU蜒�SS.*'))
            result.innerHTML = "SUCCESS";
        else
            result.innerHTML = "FAILURE: " + text;
    } catch (ex) {
        result.innerHTML = "FAILURE: " + ex;
    }
}
</script>
</body>
</html>