I have a DIV with resize: both style, and then I set up MutationObserver that listens for attribute changes.
mutObs = new MutationObserver(function () { console.log('Hello'); }); elem = document.getElementById('aDiv'); mutObs.observe(elem, { attributes: true }); elem.style.width = '300px';
I made a fiddle: http://jsfiddle.net/2NQQu/2/
In Chrome (I tested Chrome 31), the callback does not start when the DIV resized with the mouse. It works great in Firefox.
Is this behavior intentional and / or standard? This is mistake?
javascript html google-chrome resize mutation-observers
Getfree
source share