DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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>