title: jQuery offset() returning wildly incorrect values in Safari only
body: <p>I'm trying to get the top offset values for a set of elements on my page. I'm running through each element and logging its top offset value like this:</p>
  
  <pre><code>$(elements).each(function() {
      var element = $(this);
      var offset = Math.floor($(element).offset().top);
  
      console.log(offset);
  }
  </code></pre>
  
  <p>In Firefox, that correctly gives me these values:</p>
  
  <pre><code>458, 1023, 1625, 2274, 2746, 3072, 3398, 3823, 4388, 4930
  </code></pre>
  
  <p>But in Safari, I get:</p>
  
  <pre><code>460, 718, 976, 1318, 1799, 1918, 2036, 2254, 2512, 2746
  </code></pre>
  
  <p>The reported offset of the first element is basically the same between both browsers, but then Safari completely diverges from there. And the rest of Safari's values are totally illogical: for example, in an <code>800px</code> tall window, it reports the second element's top offset as <code>718px</code> even though it's actually completely offscreen.</p>
  
  <p>If I manually measure where the top of each element appears in Safari, I get the same values as what Firefox reports. So the page is in fact rendering the same in both browsers, but Safari is just reporting completely different <code>offset()</code> values.</p>
  
  <p>(I've also tried using <code>position()</code> instead of <code>offset()</code>, and I see the same disparity: the first value is correct in both browsers, and then Safari's values are completely off).</p>
  
  <p>I unfortunately can't share my actual code, so in absence of that, what could cause Safari alone to be off by so much?</p>