blob: 1d43a7478c06088a689bbbf5d2ec3ea06a4fa293 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=800">
<style>
html { font-size: 16px; }
body { width: 800px; margin: 0; overflow-y: hidden; }
</style>
</head>
<body>
<div style="position: absolute; overflow: auto; width: 320px">
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.
</div>
<div style="margin-top: 6em; float: left; width: 320px">
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.
</div>
<table>
<tr>
<td style="width: 320px">
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.
</td>
</tr>
</table>
<div style="-webkit-writing-mode: vertical-rl; height: 320px">
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.
</div>
<div style="font-size: 2.5rem">
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>
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.
</div>
</body>
</html>