blob: 61e5a602519ab22a5dacfaef9bd01e3ddfb6fc6c [file] [log] [blame]
ap41942e02006-09-01 19:36:06 +00001<html>
2<head>
3 <meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
4 <link rel="stylesheet" type="text/css" href="css-charset.css" charset="windows-1251">
5 <!-- The document charset and link charset have lower priority than
6 @charset, so they shouldn't affect anything. -->
7</head>
8<body onload="test()">
eric@webkit.orgb5c79932009-09-29 19:15:13 +00009<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=10155">bug 10155</a>:
ap41942e02006-09-01 19:36:06 +000010CSS2: @charset is not supported</p>
11<p>Test that <code>@charset</code> works and that indexed rule access via
12an IE-specific <code>rules</code> property does not take it into account.</p>
13
14<p id="result"></p>
15
16<script>
rniwa@webkit.orgada3c202012-06-20 03:28:42 +000017if (window.testRunner)
18 testRunner.dumpAsText();
ap41942e02006-09-01 19:36:06 +000019
20function test() {
21 try {
22 text = document.styleSheets[0].rules[0].style.cssText;
23 if (text.match('.*SUÑÑÅSS.*'))
24 result.innerHTML = "SUCCESS";
25 else
26 result.innerHTML = "FAILURE: " + text;
27 } catch (ex) {
28 result.innerHTML = "FAILURE: " + ex;
29 }
30}
31</script>
32
33</body>
34</html>