Permalink
Browse files

display:run-in test added. fixes #198. cc @alanhogan

  • Loading branch information...
paulirish committed Dec 12, 2011
1 parent fd2269c commit e8cc0f60aa10fecffb4073090dcb85fe5edf0311
Showing with 18 additions and 4 deletions.
  1. +0 −4 feature-detects/css-backgroundrepeat.js
  2. +18 −0 feature-detects/css-displayrunin.js
@@ -1,7 +1,3 @@
-
-
-
-
// developer.mozilla.org/en/CSS/background-repeat
// test page: jsbin.com/uzesun/
@@ -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 e8cc0f6

Please sign in to comment.