diff options
Diffstat (limited to 'LayoutTests/fast/encoding/css-link-charset.html')
-rw-r--r-- | LayoutTests/fast/encoding/css-link-charset.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/css-link-charset.html b/LayoutTests/fast/encoding/css-link-charset.html new file mode 100644 index 0000000..033f2cf --- /dev/null +++ b/LayoutTests/fast/encoding/css-link-charset.html @@ -0,0 +1,25 @@ +<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.layoutTestController) + layoutTestController.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> |