Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / text-autosizing / list-item-above-dbcat.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 </style>
14
15 <script>
16 if (window.internals) {
17     window.internals.settings.setTextAutosizingEnabled(true);
18     window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
19 } else if (window.console && console.warn) {
20     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.");
21 }
22 </script>
23
24 </head>
25 <body>
26
27 <div>
28 This test verifies that FastTextAutosizer considers a list item (LI) to be
29 "text" for the purpose of determining the deepest block containing all text
30 (DBCAT). If this were not the case, the cluster's DBCAT would be the DIV inside
31 the LI, which hasn't entered layout yet when the list marker is autosized (causing
32 the autosizer to crash).
33 </div>
34 <ul style="float:left">
35 <li><div>List item list item list item list item list item list item list item
36 list item list item list item list item list item list item list item list item
37 list item list item list item list item list item list item list item list item</div></li>
38 </ul>
39
40 </body>
41 </html>