You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
402 B
19 lines
402 B
7 years ago
|
|
||
|
// 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');
|
||
|
|
||
|
});
|
||
|
|