Skip to content

Commit

Permalink
Merge pull request #932 from stucox/supports
Browse files Browse the repository at this point in the history
Corrected polarity of `skipValueTest` param in detects using `testAllProps()`
  • Loading branch information
Stu Cox committed May 16, 2013
2 parents 0af0315 + 899ee2f commit 3c46f00
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion feature-detects/css/animations.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('cssanimations', testAllProps('animationName', 'a', false));
Modernizr.addTest('cssanimations', testAllProps('animationName', 'a', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/backgroundposition-xy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('bgpositionxy', function () {
return testAllProps('backgroundPositionX', '3px', false) && testAllProps('backgroundPositionY', '5px', false);
return testAllProps('backgroundPositionX', '3px', true) && testAllProps('backgroundPositionY', '5px', true);
});
});
2 changes: 1 addition & 1 deletion feature-detects/css/backgroundsize.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('backgroundsize', testAllProps('backgroundSize', '100%', false));
Modernizr.addTest('backgroundsize', testAllProps('backgroundSize', '100%', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/borderimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('borderimage', testAllProps('borderImage', 'url() 1', false));
Modernizr.addTest('borderimage', testAllProps('borderImage', 'url() 1', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/borderradius.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('borderradius', testAllProps('borderRadius', '0px', false));
Modernizr.addTest('borderradius', testAllProps('borderRadius', '0px', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/boxshadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('boxshadow', testAllProps('boxShadow', '1px 1px', false));
Modernizr.addTest('boxshadow', testAllProps('boxShadow', '1px 1px', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/boxsizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('boxsizing', testAllProps('boxSizing', 'border-box', false) && (document.documentMode === undefined || document.documentMode > 7));
Modernizr.addTest('boxsizing', testAllProps('boxSizing', 'border-box', true) && (document.documentMode === undefined || document.documentMode > 7));
});
2 changes: 1 addition & 1 deletion feature-detects/css/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('csscolumns', testAllProps('columnCount', '1', false));
Modernizr.addTest('csscolumns', testAllProps('columnCount', '1', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/flexbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('flexbox', testAllProps('flexWrap', 'wrap', false));
Modernizr.addTest('flexbox', testAllProps('flexWrap', 'wrap', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/flexboxlegacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('flexboxlegacy', testAllProps('boxDirection', 'reverse', false));
Modernizr.addTest('flexboxlegacy', testAllProps('boxDirection', 'reverse', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/hyphens.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ define(['Modernizr', 'prefixes', 'createElement', 'testAllProps', 'addTest'], fu

addTest("csshyphens", function() {

if (!testAllProps('hyphens', 'auto', false)) return false;
if (!testAllProps('hyphens', 'auto', true)) return false;

/* Chrome lies about its hyphens support so we need a more robust test
crbug.com/107111
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/css/mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('cssmask', testAllProps('maskRepeat', 'repeat-x', false));
Modernizr.addTest('cssmask', testAllProps('maskRepeat', 'repeat-x', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/overflow-scrolling.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('overflowscrolling', testAllProps('overflowScrolling', 'touch', false));
Modernizr.addTest('overflowscrolling', testAllProps('overflowScrolling', 'touch', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/reflections.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
}
!*/
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('cssreflections', testAllProps('boxReflect', 'above', false));
Modernizr.addTest('cssreflections', testAllProps('boxReflect', 'above', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
// http://www.w3.org/TR/css3-ui/#resize
// https://developer.mozilla.org/en/CSS/resize

Modernizr.addTest('cssresize', testAllProps('resize', 'both', false));
Modernizr.addTest('cssresize', testAllProps('resize', 'both', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/transforms.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('csstransforms', testAllProps('transform', 'scale(1)', false));
Modernizr.addTest('csstransforms', testAllProps('transform', 'scale(1)', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/transforms3d.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define(['Modernizr', 'testAllProps', 'testStyles', 'docElement'], function( Modernizr, testAllProps, testStyles, docElement ) {
Modernizr.addTest('csstransforms3d', function() {
var ret = !!testAllProps('perspective', '1px', false);
var ret = !!testAllProps('perspective', '1px', true);

// Webkit's 3D transforms are passed off to the browser's own graphics renderer.
// It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/css/transitions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
Modernizr.addTest('csstransitions', testAllProps('transition', 'all', false));
Modernizr.addTest('csstransitions', testAllProps('transition', 'all', true));
});
2 changes: 1 addition & 1 deletion feature-detects/css/userselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) {
// by ryan seddon
//https://github.com/Modernizr/Modernizr/issues/250

Modernizr.addTest('userselect', testAllProps('userSelect', 'none', false));
Modernizr.addTest('userselect', testAllProps('userSelect', 'none', true));
});

0 comments on commit 3c46f00

Please sign in to comment.