title: Is there a way to detect implicit vs. explicit CSS height values in jQuery?
body: <p>In jQuery, both <code>$('#foo').height()</code> and <code>$('#foo').css('height')</code> return a value, even if no height property was explicitly set using CSS. Is there a way to detect if an element doesn't have an explicit height, i.e. it's just being rendered according to its contents?</p>
  
  <p>Here's an example I wrote to demonstrate: <a href="http://jsfiddle.net/Enn6p/2/" rel="noreferrer">http://jsfiddle.net/Enn6p/2/</a></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>To clarify my question further, <code>$('#foo').css('min-height')</code> and <code>$('#foo').css('max-height')</code> already properly return an empty string if they aren't explicitly set. I am looking for a way to find out whether an explicit <code>height</code> value is being set via CSS, or not.</p>
  
  <p><strong>USE CASE</strong></p>
  
  <p>I have a script that attempts to make floated elements the same height. It does this by looping over the elements to see which one is the tallest, then applying that height to all of them. In some cases, these elements already have an explicit height set, but the others are rendered implicitly.</p>
  
  <p>I now want to add the ability to undo this, and make everything go back to their original heights. In order to do this, I need to know if the element originally had a height set, or if the height was "auto". Once I can do this, I can store the original value in the data collection for the element and then use that to revert to the original height later.</p>