Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text-autosizing / cluster-inline-block-or-table.html
blob15494a0395c2400b4592515088fee2415c7ea752
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test for https://bugs.webkit.org/show_bug.cgi?id=104702</title>
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>
11 <script src="resources/autosizingTest.js"></script>
13 </head>
14 <body>
15 <div>
16 <div>
17 This element is autosized to 40px computed font size (16 * 800/320), since the width of the root cluster is used for autosizing.<br>
18 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
19 </div>
20 <div>
21 <div style="display: inline-block; width: 600px">
22 This element becomes a separate autosizing cluster since it's an inline-block element. Hence its computed font size is 30px (16 * 600 / 320).<br>
23 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
24 </div></div>
25 <div>
26 <div style="display: inline-table; width: 400px">
27 This element becomes a separate autosizing cluster since it's an inline-table element. Hence its computed font size is 20px (16 * 400 / 320).<br>
28 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
29 </div></div>
30 </div>
31 </body>
32 </html>