title: JavaScript - Is there a way to get the offsetTop of an element after hypothetical CSS styles are applied?
body: <p>Is there a way to get the value of an element's <code>offsetTop</code> after some CSS styles are applied without actually applying that CSS?</p>
  
  <p>For example, if an element's CSS currently is:</p>
  
  <pre><code>position: absolute;
  top: 45px;
  </code></pre>
  
  <p>Is there a way to know what the <code>offsetTop</code> of that element would be for:</p>
  
  <p><code>top: auto;</code></p>
  
  <p>without actually applying <code>top: auto;</code>?  </p>
  
  <p>If we do actually apply it, even for a short time, it causes a flicker.</p>