4 <title>Test for https://bugs.webkit.org/show_bug.cgi?id=
104702</title>
5 <meta name=
"viewport" content=
"width=800">
7 html { font-size:
16px; }
8 body { width:
800px; margin:
0; overflow-y: hidden; }
11 <script src=
"resources/autosizingTest.js"></script>
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.
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.
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.