background.js 623 B

12345678910111213141516171819
  1. 'use strict';
  2. var shorthandSetter = require('../parsers').shorthandSetter;
  3. var shorthandGetter = require('../parsers').shorthandGetter;
  4. var shorthand_for = {
  5. 'background-color': require('./backgroundColor'),
  6. 'background-image': require('./backgroundImage'),
  7. 'background-repeat': require('./backgroundRepeat'),
  8. 'background-attachment': require('./backgroundAttachment'),
  9. 'background-position': require('./backgroundPosition'),
  10. };
  11. module.exports.definition = {
  12. set: shorthandSetter('background', shorthand_for),
  13. get: shorthandGetter('background', shorthand_for),
  14. enumerable: true,
  15. configurable: true,
  16. };