From 7cc7910df63d19e7ebc67bb1156437f0559712d7 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 21 Sep 2014 12:25:47 +0200 Subject: add foundation via bower --- .../modernizr/feature-detects/css-displaytable.js | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 source/bower_components/modernizr/feature-detects/css-displaytable.js (limited to 'source/bower_components/modernizr/feature-detects/css-displaytable.js') diff --git a/source/bower_components/modernizr/feature-detects/css-displaytable.js b/source/bower_components/modernizr/feature-detects/css-displaytable.js new file mode 100644 index 0000000..bc0a67c --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/css-displaytable.js @@ -0,0 +1,27 @@ +// display: table and table-cell test. (both are tested under one name "table-cell" ) +// By @scottjehl + +// 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. +// more testing neccessary perhaps. + +Modernizr.addTest( "display-table",function(){ + + var doc = window.document, + docElem = doc.documentElement, + parent = doc.createElement( "div" ), + child = doc.createElement( "div" ), + childb = doc.createElement( "div" ), + ret; + + parent.style.cssText = "display: table"; + child.style.cssText = childb.style.cssText = "display: table-cell; padding: 10px"; + + parent.appendChild( child ); + parent.appendChild( childb ); + docElem.insertBefore( parent, docElem.firstChild ); + + ret = child.offsetLeft < childb.offsetLeft; + docElem.removeChild(parent); + return ret; +}); + -- cgit v1.2.1