You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
476 B

  1. 'use strict';
  2. var isValid = require('./borderStyle').isValid;
  3. module.exports.isValid = isValid;
  4. module.exports.definition = {
  5. set: function(v) {
  6. if (isValid(v)) {
  7. if (v.toLowerCase() === 'none') {
  8. v = '';
  9. this.removeProperty('border-bottom-width');
  10. }
  11. this._setProperty('border-bottom-style', v);
  12. }
  13. },
  14. get: function() {
  15. return this.getPropertyValue('border-bottom-style');
  16. },
  17. enumerable: true,
  18. configurable: true,
  19. };