backgroundrepeat.js 822 B

123456789101112131415161718192021222324252627
  1. /*!
  2. {
  3. "name": "Background Repeat",
  4. "property": ["bgrepeatspace", "bgrepeatround"],
  5. "tags": ["css"],
  6. "builderAliases": ["css_backgroundrepeat"],
  7. "authors": ["Ryan Seddon"],
  8. "notes": [{
  9. "name": "MDN Docs",
  10. "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat"
  11. }, {
  12. "name": "Test Page",
  13. "href": "https://jsbin.com/uzesun/"
  14. }, {
  15. "name": "Demo",
  16. "href": "https://jsfiddle.net/ryanseddon/yMLTQ/6/"
  17. }]
  18. }
  19. !*/
  20. /* DOC
  21. Detects the ability to use round and space as properties for background-repeat
  22. */
  23. define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
  24. // Must value-test these
  25. Modernizr.addTest('bgrepeatround', testAllProps('backgroundRepeat', 'round'));
  26. Modernizr.addTest('bgrepeatspace', testAllProps('backgroundRepeat', 'space'));
  27. });