Skip to content

Instantly share code, notes, and snippets.

@bryanforbes
Created October 4, 2010 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanforbes/610288 to your computer and use it in GitHub Desktop.
Save bryanforbes/610288 to your computer and use it in GitHub Desktop.
addtest('bug-root-children-arent-styled', function(g, d, e){
var result = null, root;
if(d && d.documentElement && e){
root = d.documentElement;
e.style.cssText = 'width:40px;height:40px;';
try{
root.insertBefore(e, root.firstChild);
result = e.clientWidth == 0;
root.removeChild(e);
}catch(ex){}
e.style.cssText = '';
}
return result;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment