mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
20 lines
365 B
HTML
20 lines
365 B
HTML
<!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='30em';
|
|
document.body.offsetWidth;
|
|
document.theForm.theSelect.style.width='auto';
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|