1
// display: table and table-cell test. (both are tested under one name "table-cell" )
4
// all additional table display values are here: http://pastebin.com/Gk9PeVaQ though Scott has seen some IE false positives with that sort of weak detection.
5
// more testing neccessary perhaps.
7
Modernizr.addTest( "display-table",function(){
9
var doc = window.document,
10
docElem = doc.documentElement,
11
parent = doc.createElement( "div" ),
12
child = doc.createElement( "div" ),
13
childb = doc.createElement( "div" ),
16
parent.style.cssText = "display: table";
17
child.style.cssText = childb.style.cssText = "display: table-cell; padding: 10px";
19
parent.appendChild( child );
20
parent.appendChild( childb );
21
docElem.insertBefore( parent, docElem.firstChild );
23
ret = child.offsetLeft < childb.offsetLeft;
24
docElem.removeChild(parent);