Created
December 19, 2011 21:12
-
-
Save LeaVerou/1498895 to your computer and use it in GitHub Desktop.
Do browsers fire the resize event for CSS resize?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Do browsers fire the resize event for CSS resize? | |
*/ | |
#resize { | |
overflow: hidden; | |
resize: both; | |
width: 200px; | |
min-height:200px; | |
background:deeppink; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="resize">They should.</div> | |
<script> | |
document.getElementById('resize').onresize = function(evt) { console.log('resize fired!', evt); }; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","prefixfree":"","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment