blob: 61e5a602519ab22a5dacfaef9bd01e3ddfb6fc6c [file] [log] [blame]
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="css-charset.css" charset="windows-1251">
<!-- The document charset and link charset have lower priority than
@charset, so they shouldn't affect anything. -->
<body onload="test()">
<p>Test for <a href="">bug 10155</a>:
CSS2: @charset is not supported</p>
<p>Test that <code>@charset</code> works and that indexed rule access via
an IE-specific <code>rules</code> property does not take it into account.</p>
<p id="result"></p>
if (window.testRunner)
function test() {
try {
text = document.styleSheets[0].rules[0].style.cssText;
if (text.match('.*SUÑÑÅSS.*'))
result.innerHTML = "SUCCESS";
result.innerHTML = "FAILURE: " + text;
} catch (ex) {
result.innerHTML = "FAILURE: " + ex;