Skip to content

Commit

Permalink
Moving boxshadow test into feature-detects/css-boxshadow.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rupl committed Sep 23, 2012
1 parent 9b1eaf1 commit 23d9142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions feature-detects/css-boxshadow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

// WebOS unfortunately false positives on this test.

Modernizr.addTest('boxshadow', Modernizr.testAllProps('boxShadow'));
5 changes: 0 additions & 5 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,6 @@ window.Modernizr = (function( window, document, undefined ) {
* -----
*/

// WebOS unfortunately false positives on this test.
tests['boxshadow'] = function() {
return testPropsAll('boxShadow');
};

// FF3.0 will false positive on this test
tests['textshadow'] = function() {
return document.createElement('div').style.textShadow === '';
Expand Down

0 comments on commit 23d9142

Please sign in to comment.