Let's say I have the following HTML:
<div id='content'></div>
I'd like to be alerted when height mutations occur on this element. I was hoping the MutationObserver class would help in this, but here is my problem with it:
document.querySelector('#content').style.height = '100px'
It triggers my callback like expected, however normal user interactions won't trigger this, e.g., http://jsfiddle.net/wq4q9/2/
My question is, what is the best modern approach for checking if an element's height has changed?
No jQuery please.