blob: 16710f359e0f6f9ec63f317d27cf7a20db676586 [file] [log] [blame]
<title>This tests that text-indent works with shrink-to-fit width computation.</title>
<style>
#percentage_indent, #fixed_indent {
border: 1px solid green;
color: white;
font-family: ahem;
font-size: 14px;
margin: 10px;
}
</style>
<div id=percentage_indent><div style="text-indent: 10%">some text</div></div>
<div id=fixed_indent><div style="text-indent: 50px;">some text</div></div>
<script>
document.body.offsetHeight;
percentage_indent.style.float = "right";
fixed_indent.style.float = "right";
</script>