Skip to content

Instantly share code, notes, and snippets.

@kangax
Created April 7, 2009 21:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kangax/91455 to your computer and use it in GitHub Desktop.
Save kangax/91455 to your computer and use it in GitHub Desktop.
var HAS_EXPANDING_BOX_BUG = (function(){
var el = document.createElement('div'),
isBuggy = false;
el.style.width = '1px';
el.innerHTML = 'xxxxxxxxxx';
document.body.appendChild(el);
isBuggy = (el.offsetWidth > 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