I want my <fieldset>
elements to behave like vanilla <div>
's by filling their containing element and showing a scrollbar when they are set to overflow: auto
.
For instance, I don't see why the fieldset in this example is wider than its containing div:
<div class=outer>
<fieldset class=inner>
fooooooooooooooooooooooooooooooooooooo
</fieldset>
</div>
<div class=outer>
<div class=inner>
fooooooooooooooooooooooooooooooooooooooo
</div>
</div>
and corresponding css:
.outer {
width: 60px;
}
.inner {
overflow: auto;
display: block;
height: 60px;
border: 1px solid red;
}