An element has a JavaScript style object which contains the different names and values of CSS styles. I'd like to trigger a function every time this object changes without use of polling. Is there any way to do this in a way that is cross-browser compatible and would work reliably with third party code (because let's say you're providing a drop-in script)? Binding a JavaScript event like DOMAttrModified or DOMSubtreeModified won't suffice because they don't work in Chrome.

Edit
Report