diff options
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/css-displayrunin.js')
-rw-r--r-- | source/bower_components/modernizr/feature-detects/css-displayrunin.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/css-displayrunin.js b/source/bower_components/modernizr/feature-detects/css-displayrunin.js new file mode 100644 index 0000000..01eddb7 --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/css-displayrunin.js @@ -0,0 +1,18 @@ + +// by alanhogan + +// https://github.com/Modernizr/Modernizr/issues/198 +// http://css-tricks.com/596-run-in/ + + + +Modernizr.testStyles(' #modernizr { display: run-in; } ', function(elem, rule){ + + var ret = (window.getComputedStyle ? + getComputedStyle(elem, null).getPropertyValue('display') : + elem.currentStyle['display']); + + Modernizr.addTest('display-runin', ret == 'run-in'); + +}); + |