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>
16 <div style=
"position: absolute; overflow: auto; width: 320px">
17 This text should not be autosized (its computed font size should remain
16px), since the position:absolute causes this to be a new cluster, and this cluster isn't wide enough.
20 <div style=
"margin-top: 6em; float: left; width: 320px">
21 This text should not be autosized (its computed font size should remain
16px), since the float:left causes this to be a new cluster, and this cluster isn't wide enough.
26 <td style=
"width: 320px">
27 This text should not be autosized (its computed font size should remain
16px), since being a table cell causes this to be a new cluster, and this cluster isn't wide enough.
32 <div style=
"-webkit-writing-mode: vertical-rl; height: 320px">
33 This text should not be autosized (its computed font size should remain
16px), since the perpendicular writing-mode compared to its containing block causes this to be a new cluster, and this cluster's logicalWidth isn't high enough.
37 This text is here to make sure the root cluster has enough text and hence gets autosized, so when the divs above don't get autosized it's because they formed a new cluster.
<br>
38 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.