summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/select/listbox-zero-row-initial-ref.html
blob: e7b2ec673ac26f89d1ae02836091f0e019bd34b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE HTML>
<title>Reference for initial reflow of zero height options</title>
<style>

  html { overflow: hidden }
  option { height: 0; min-height: 0 }

</style>

<select size="3">
  <option>One</option>
  <option>Two</option>
  <option>Three</option>
</select>

<script>

  document.body.offsetHeight; // flush layout
  document.body.style.fontSize = "60px";
  document.body.offsetHeight; // flush layout
  document.body.style.fontSize = "";

</script>