Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / text-autosizing / clusters-sufficient-width-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4
5 <meta name="viewport" content="width=800">
6 <style>
7 html { font-size: 16px; }
8 body { width: 800px; margin: 0; overflow-y: hidden; }
9 </style>
10
11 </head>
12 <body>
13
14 <div style="position: absolute; overflow: auto; width: 400px; font-size: 20px">
15     This text should be autosized to 20px computed font size (16 * 400/320), since the position:absolute causes this to be a new cluster.
16 </div>
17
18 <div style="margin-top: 100px; float: left; width: 420px; font-size: 21px">
19     This text should be autosized to 21px computed font size (16 * 420/320), since the float:left causes this to be a new cluster.
20 </div>
21
22 <table cellspacing="0" cellpadding="0">
23     <tr>
24         <td style="width: 380px; font-size: 16px">
25             <!-- The Fast Text Autosizer uses the containing block's width which is so wide that this will not have enough text to autosize. -->
26             This text should be autosized to 19px computed font size (16 * 380/320), since being a table cell causes this to be a new cluster.
27         </td>
28     </tr>
29 </table>
30
31 <div style="-webkit-writing-mode: vertical-rl; height: 440px">
32     This text should be autosized to 22px computed font size (16 * 440/320), since the perpendicular writing-mode compared to its containing block causes this to be a new cluster. Unfortunately due to <a href="https://bugs.webkit.org/show_bug.cgi?id=96557">http://webkit.org/b/96557</a> the height:440px is incorrectly interpreted as constraining the logicalHeight, so it doesn't get autosized.
33 </div>
34
35 </body>
36 </html>