Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text-autosizing / cluster-inline-block-or-table-expected.html
blob34cfa4cb4d3bd198039679586b84f4e68bc3c93a
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 </head>
12 <body>
13 <div>
14 <div style="font-size: 2.5rem">
15 This element is autosized to 40px computed font size (16 * 800/320), since the width of the root cluster is used for autosizing.<br>
16 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
17 </div>
18 <div>
19 <div style="display: inline-block; width: 600px; font-size: 1.875rem">
20 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>
21 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
22 </div>
23 </div>
24 <div>
25 <div style="display: inline-table; width: 400px; font-size: 1.25rem">
26 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>
27 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
28 </div>
29 </div>
30 </div>
31 </body>
32 </html>