gecko-dev/layout/reftests/forms/select/listbox-zero-row-initial-ref.html
L. David Baron af959c6c34 Bug 1380521 - Use a more reliably invalid initial mBSizeOfARow so that we reflow properly if it changes to zero. r=dholbert
This fixes a failure in layout/reftests/bugs/467084-1.html, triggered by
the primary patch in bug 1308876, on Android only (or on all platforms
if I add 'html { overflow: hidden }').

I confirmed locally (on Linux) that, without this patch, both
layout/reftests/bugs/467084-1.html with 'html { overflow: hidden }', and
the reftest added here, fail, but that with the patch they both pass.

MozReview-Commit-ID: 3SjTlnBngBV
2017-07-12 19:37:11 -07:00

24 lines
460 B
HTML

<!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>