Import css/css-syntax WPT tests
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-syntax / charset / page-windows-1251-css-at-charset-windows-1250-in-utf16.html
1 <!doctype html>
2 <title>CSS charset: page windows-1251, CSS @charset windows-1250 in utf-16</title>
3 <link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
4 <meta charset=windows-1251>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 <link rel=stylesheet href="support/at-charset-windows-1250-in-utf16.css">
8 <div id=log></div>
9 <div id=&#xfffd;></div>
10 <div id=&#x0418;></div>
11 <div id=&#x010c;></div>
12 <script>
13 var elm_fffd = document.getElementById('\ufffd');
14 var elm_0418 = document.getElementById('\u0418');
15 var elm_010c = document.getElementById('\u010c');
16 var t = async_test();
17 onload = t.step_func(function(){
18   assert_equals(getComputedStyle(elm_fffd, '').visibility, 'visible', 'selector U+FFFD matched (utf-8)');
19   assert_equals(getComputedStyle(elm_0418, '').visibility, 'hidden', 'selector U+0418 did not match (windows-1251)');
20   assert_equals(getComputedStyle(elm_010c, '').visibility, 'visible', 'selector U+010C matched (windows-1250)');
21   this.done();
22 });
23 </script>