blob: cdf452e994a556f67bb491c0b262c1c622711083 [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">
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 doesn't contain enough text.
</div>
<div style="margin-top: 3em; float: left">
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 doesn't contain enough text.
</div>
<div style="-webkit-writing-mode: vertical-rl; height:min-content;">
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 doesn't contain enough text (or have large enough logicalWidth).
</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>