Skip to content

Commit

Permalink
display:run-in test added. fixes Modernizr#198. cc @alanhogan
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Dec 12, 2011
1 parent dd6d760 commit 9d90978
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
4 changes: 0 additions & 4 deletions feature-detects/css-backgroundrepeat.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@




// developer.mozilla.org/en/CSS/background-repeat

// test page: jsbin.com/uzesun/
Expand Down
18 changes: 18 additions & 0 deletions feature-detects/css-displayrunin.js
Original file line number Diff line number Diff line change
@@ -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');

});

0 comments on commit 9d90978

Please sign in to comment.