Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-max-block-size.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="fieldset-max-block-size-ref.html">
<style>
fieldset {
border: 2px solid gray;
margin: 1em;
padding: 0;
width: 20em;
}
.f1 {
overflow: auto;
max-height: 3em;
}
.f2 {
max-height: 0;
}
</style>
<fieldset class="f1">
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
</fieldset>
<fieldset class="f1">
<div>foo</div>
</fieldset>
<fieldset class="f2">
<div>foo</div>
</fieldset>