modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
29 lines (28 loc) • 870 B
JavaScript
/*!
{
"name": "Backdrop Filter",
"property": "backdropfilter",
"authors": ["Brian Seward"],
"tags": ["css"],
"notes": [
{
"name": "W3C Editor’s Draft specification",
"href": "https://drafts.fxtf.org/filters-2/#BackdropFilterProperty"
},
{
"name": "Caniuse for CSS Backdrop Filter",
"href": "http://caniuse.com/#feat=css-backdrop-filter"
},
{
"name": "WebKit Blog introduction + Demo",
"href": "https://www.webkit.org/blog/3632/introducing-backdrop-filters/"
}
]
}
!*/
/* DOC
Detects support for CSS Backdrop Filters, allowing for background blur effects like those introduced in iOS 7. Support for this was added to iOS Safari/WebKit in iOS 9.
*/
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
Modernizr.addTest('backdropfilter', testAllProps('backdropFilter'));
});