title: How can I tell if a DOM element is visible in the current viewport?
body: <p>Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the <strong>viewport</strong>)?</p>
  
  <p>(The question refers to Firefox.)</p>