borderRight.js 721 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-right-width': require('./borderRightWidth'),
  7. 'border-right-style': require('./borderRightStyle'),
  8. 'border-right-color': require('./borderRightColor')
  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-right', shorthand_for),
  16. get: shorthandGetter('border-right', shorthand_for),
  17. enumerable: true,
  18. configurable: true
  19. };