borderBottom.js 729 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. var shorthandSetter = require('../parsers').shorthandSetter;
  3. var shorthandGetter = require('../parsers').shorthandGetter;
  4. var shorthandParser = require('../parsers').shorthandParser;
  5. var shorthand_for = {
  6. 'border-bottom-width': require('./borderBottomWidth'),
  7. 'border-bottom-style': require('./borderBottomStyle'),
  8. 'border-bottom-color': require('./borderBottomColor')
  9. };
  10. var isValid = function isValid(v) {
  11. return shorthandParser(v, shorthand_for) !== undefined;
  12. };
  13. module.exports.isValid = isValid;
  14. module.exports.definition = {
  15. set: shorthandSetter('border-bottom', shorthand_for),
  16. get: shorthandGetter('border-bottom', shorthand_for),
  17. enumerable: true,
  18. configurable: true
  19. };