Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created December 19, 2011 21:12
Show Gist options
  • Save LeaVerou/1498895 to your computer and use it in GitHub Desktop.
Save LeaVerou/1498895 to your computer and use it in GitHub Desktop.
Do browsers fire the resize event for CSS resize?
/**
* Do browsers fire the resize event for CSS resize?
*/
#resize {
overflow: hidden;
resize: both;
width: 200px;
min-height:200px;
background:deeppink;
}
<div id="resize">They should.</div>
<script>
document.getElementById('resize').onresize = function(evt) { console.log('resize fired!', evt); };
</script>
{"view":"split","prefixfree":"","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment