You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var s= ['boxSizing','MozBoxSizing','WebkitBoxSizing','msBoxSizing'];
var div = document.createElement('div');
for(var i=0,l=s.length;i<l ; i++){
//obviously need to replace not override classes
if(div.style[s[i]]!=undefined)document.documentElement.className = 'box-sizing';
}
})();
Or am I missing something?
The text was updated successfully, but these errors were encountered:
I also ran into a need for this recently. I just added this (based on limeblack's code):
Modernizr.addTest('boxsizing', function () {
var s = ['boxSizing', 'MozBoxSizing', 'WebkitBoxSizing', 'msBoxSizing'],
div = document.createElement('div');
for (var i = 0, l = s.length ; i < l ; i++) {
if(div.style[s[i]] !=undefined)
return true;
}
return false;
});
Are there any plans to support box-sizing?
I believe it is as simple as;
Or am I missing something?
The text was updated successfully, but these errors were encountered: