summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/395107-2.html
blob: cb049a72f9b1c14f284c2ced0bd10bc5e0aea130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<body>

<select id="a">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</select>

<script>
document.body.offsetWidth;
var x=document.getElementById('a').options;
x[1].defaultSelected = true;
x[2].defaultSelected = true;
x[3].defaultSelected = true;
</script>
</body>
</html>