summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/css-displayrunin.js
blob: 01eddb712628028e5a49b0ede7efaf90cdd6e60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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');

});