Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / font-face-descending-unicode-range.html
blobb63f8dc686a1cf45178ac20b86e21ff75082254e
1 <!doctype html>
2 <html>
3 <head>
4 <title>Test for Bug 41339 - unicode-range property only with a descending range causes a crash</title>
5 <style>
6 @font-face {
7 font-family: 'myfont';
8 src: local(Courier), local('Courier New'); /* Use monospace font */
9 unicode-range: U+062-60;
11 </style>
12 <script src="../../resources/js-test.js"></script>
13 </head>
14 <body>
15 <div id="description"></div>
16 <div style="font-family: 'myfont'">
17 <span id="i_s" style="border:solid 1px">iiiiiiiiii</span><br/>
18 <span id="x_s" style="border:solid 1px">XXXXXXXXXX</span><br/>
19 </div>
20 <div id="console"></div>
21 <script>
22 description("Interval unicode-ranges that descend are invalid and omitted. Without any valid ranges, the descriptor is omitted. As a result, the @font-face rule in this file is applied to all characters. This test passes if the following i's and X's are shown in Courier and they have the same length on screen. As of r62096, opening this file causes a crash instead.");
24 shouldBe("document.getElementById('i_s').offsetWidth", "document.getElementById('x_s').offsetWidth");
25 </script>
26 </body>
27 </html>