<input type="text" id="test">
<script type="text/javascript">
var test=document.getElementById("test");
Object.defineProperty(test.style,"width",{
set:function(){
alert(1);
}
});
test.onfocus=function(){
test.style.width="120px";
}
</script>
when the input's width change,the setter function can be triggered in IE11 and FireFox,but it can not work in chrome.