Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / text-autosizing / list-marker-with-links-autosizing.html
1 <!DOCTYPE html>
2 <html style="font-size: 16px">
3 <head>
4
5 <meta name="viewport" content="width=800">
6 <style>
7   body {
8     width: 800px;
9     margin: 0;
10     overflow-y: hidden;
11     overflow-x: hidden;
12   }
13   #nomarker {
14     list-style-type: none;
15   }
16 </style>
17
18 <script>
19 if (window.internals) {
20     window.internals.settings.setTextAutosizingEnabled(true);
21     window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
22 } else if (window.console && console.warn) {
23     console.warn("This test depends on the Text Autosizing setting being true, so run it in DumpRenderTree, or manually enable Text Autosizing, and either use a mobile device with 320px device-width (like Nexus S or iPhone), or define HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP.");
24 }
25 </script>
26
27 </head>
28 <body>
29
30 <div>
31 The below list items should be autosized to 40px computed font-size (16 * 800/320). Also the corresponding list markers should increase in size appropriately. The whole list is shifted to the right by 8px (14 (autosized marker width) * (1 - 1/2.5) rounded) to compensate the scaling of list item markers and make sure they don't get chopped off.
32 </div>
33 <ul>
34 <li><a>List item with a link</a></li>
35 <li><b>List item with bold text</b></li>
36 <li>Simple plain list item</li>
37 <li><a>List item with a link as part of anonymous block</a><div></div></li>
38 <li id="nomarker">Item without a marker<li>
39 </ul>
40
41 </body>
42 </html>