diff options
Diffstat (limited to 'layout/reftests/forms/select/listbox-zero-row-initial-ref.html')
-rw-r--r-- | layout/reftests/forms/select/listbox-zero-row-initial-ref.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/layout/reftests/forms/select/listbox-zero-row-initial-ref.html b/layout/reftests/forms/select/listbox-zero-row-initial-ref.html new file mode 100644 index 0000000000..e7b2ec673a --- /dev/null +++ b/layout/reftests/forms/select/listbox-zero-row-initial-ref.html @@ -0,0 +1,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> |