backgroundposition-xy.js 731 B

123456789101112131415161718192021222324
  1. /*!
  2. {
  3. "name": "Background Position XY",
  4. "property": "bgpositionxy",
  5. "tags": ["css"],
  6. "builderAliases": ["css_backgroundposition_xy"],
  7. "authors": ["Allan Lei", "Brandom Aaron"],
  8. "notes": [{
  9. "name": "Demo",
  10. "href": "https://jsfiddle.net/allanlei/R8AYS/"
  11. }, {
  12. "name": "Adapted From",
  13. "href": "https://github.com/brandonaaron/jquery-cssHooks/blob/master/bgpos.js"
  14. }]
  15. }
  16. !*/
  17. /* DOC
  18. Detects the ability to control an element's background position using css
  19. */
  20. define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
  21. Modernizr.addTest('bgpositionxy', function() {
  22. return testAllProps('backgroundPositionX', '3px', true) && testAllProps('backgroundPositionY', '5px', true);
  23. });
  24. });