borderTop.js 675 B

12345678910111213141516171819202122
  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-top-width': require('./borderTopWidth'),
  7. 'border-top-style': require('./borderTopStyle'),
  8. 'border-top-color': require('./borderTopColor')
  9. };
  10. module.exports.isValid = function (v) {
  11. return shorthandParser(v, shorthand_for) !== undefined;
  12. };
  13. module.exports.definition = {
  14. set: shorthandSetter('border-top', shorthand_for),
  15. get: shorthandGetter('border-top', shorthand_for),
  16. enumerable: true,
  17. configurable: true
  18. };