summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-max-block-size.html
blob: 170dedd6067b0d9663f5b1346a43cbeaf7d8bcf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<link rel="help" href="http://crbug.com/1151858">
<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>