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; }
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.
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.
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.