mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 23:21:04 +00:00
25 lines
731 B
JavaScript
25 lines
731 B
JavaScript
/*!
|
|
{
|
|
"name": "Background Position XY",
|
|
"property": "bgpositionxy",
|
|
"tags": ["css"],
|
|
"builderAliases": ["css_backgroundposition_xy"],
|
|
"authors": ["Allan Lei", "Brandom Aaron"],
|
|
"notes": [{
|
|
"name": "Demo",
|
|
"href": "https://jsfiddle.net/allanlei/R8AYS/"
|
|
}, {
|
|
"name": "Adapted From",
|
|
"href": "https://github.com/brandonaaron/jquery-cssHooks/blob/master/bgpos.js"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects the ability to control an element's background position using css
|
|
*/
|
|
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
|
|
Modernizr.addTest('bgpositionxy', function() {
|
|
return testAllProps('backgroundPositionX', '3px', true) && testAllProps('backgroundPositionY', '5px', true);
|
|
});
|
|
});
|