summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/346774-1b.html
blob: 2436d6dae4ba09a3ed490b1b9ceaa60bd59b592b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<body>
<form name="theForm">
  <select name="theSelect" style="width: auto">
    <option>xxxxxxxxxx</option>
  </select>
</form>
<script>
  // Flush reflow
  document.body.offsetWidth;
  document.theForm.theSelect.style.width='2em';
  document.body.offsetWidth;
  document.theForm.theSelect.style.width='auto';
</script>
</body>
</html>