-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
168 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
/*! | ||
{ | ||
"name": "CSS Mask", | ||
"caniuse": "",X | ||
"property": "lastchild", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
stucox
Member
|
||
"tags": ["css"], | ||
"notes": [ | ||
"This is for the -webkit-mask feature, not for the similar svg mask in Firefox.", | ||
{ | ||
"name": "Webkit blog on CSS Masks", | ||
"href": "http://www.webkit.org/blog/181/css-masks/" | ||
}, | ||
{ | ||
"name": "Safari Docs", | ||
"href": "http://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html" | ||
}, | ||
{ | ||
"name": "Mozilla css svg mask (not this)", | ||
"href": "http://developer.mozilla.org/en/CSS/mask" | ||
}, | ||
{ | ||
"name": "Combine with clippaths for awesomeness", | ||
"href": "http://generic.cx/for/webkit/test.html" | ||
} | ||
] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { | ||
// this tests passes for webkit's proprietary `-webkit-mask` feature | ||
// www.webkit.org/blog/181/css-masks/ | ||
// developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html | ||
|
||
// it does not pass mozilla's implementation of `mask` for SVG | ||
|
||
// developer.mozilla.org/en/CSS/mask | ||
// developer.mozilla.org/En/Applying_SVG_effects_to_HTML_content | ||
|
||
// Can combine with clippaths for awesomeness: http://generic.cx/for/webkit/test.html | ||
|
||
Modernizr.addTest('cssmask', testAllProps('maskRepeat')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
/*! | ||
{ | ||
"name": "CSS Media Queries", | ||
"caniuse": "",X | ||
"property": "mediaqueries", | ||
"tags": ["css"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'mq'], function( Modernizr, mq ) { | ||
Modernizr.addTest('mediaqueries', mq('only all')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
/*! | ||
{ | ||
"name": "CSS Object Fit", | ||
"caniuse": "",X | ||
"property": "objectfit", | ||
"tags": ["css"], | ||
"notes": [{ | ||
"name": "Opera Article on Object Fit", | ||
"href": "http://dev.opera.com/articles/view/css3-object-fit-object-position/" | ||
}] | ||
} | ||
!*/ | ||
define(['Modernizr', 'prefixed'], function( Modernizr, prefixed ) { | ||
// dev.opera.com/articles/view/css3-object-fit-object-position/ | ||
Modernizr.addTest('objectfit', !!prefixed('objectFit'), { aliases: ['object-fit'] }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
/*! | ||
{ | ||
"name": "CSS Object Fit", | ||
"caniuse": "",X | ||
"property": "overflowscrolling", | ||
"tags": ["css"], | ||
"warnings": ["Introduced in iOS5b2. API is subject to change."] | ||
"notes": [{ | ||
"name": "Article on iOS overflow scrolling", | ||
"href": "http://johanbrook.com/browsers/native-momentum-scrolling-ios-5/" | ||
}] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { | ||
// johanbrook.com/browsers/native-momentum-scrolling-ios-5/ | ||
// introduced in iOS5b2. Possible API may change... | ||
Modernizr.addTest("overflowscrolling", testAllProps("overflowScrolling")); | ||
Modernizr.addTest('overflowscrolling', testAllProps('overflowScrolling')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
/*! | ||
{ | ||
"name": "CSS Reflections", | ||
"caniuse": "",X | ||
"property": "cssreflections", | ||
"tags": ["css"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { | ||
Modernizr.addTest('cssreflections', testAllProps('boxReflect')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Noticed this during testing. This property should be "mask", correct?