Skip to content

Instantly share code, notes, and snippets.

@unscriptable
Forked from kangax/gist:91455
Created April 7, 2009 21:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unscriptable/91476 to your computer and use it in GitHub Desktop.
Save unscriptable/91476 to your computer and use it in GitHub Desktop.
var HAS_EXPANDING_BOX_BUG = (function(){
var el = document.createElement('div'),
isBuggy = false;
el.style.height = '1px';
document.body.appendChild(el);
isBuggy = (el.offsetHeight > 1);
document.body.removeChild(el);
el = null;
return isBuggy;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment