<script>
if (window.internals) {
    window.internals.settings.setTextAutosizingEnabled(true);
    window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
}
</script>
<style>
.t { font-size: 14px }
.f { float: left; border: 2px solid red }
</style>
<div class=f>float</div>
<div class=t>text</div>
<div class=t>more text</div>
