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.
24 lines
729 B
24 lines
729 B
'use strict';
|
|
|
|
var shorthandSetter = require('../parsers').shorthandSetter;
|
|
var shorthandGetter = require('../parsers').shorthandGetter;
|
|
var shorthandParser = require('../parsers').shorthandParser;
|
|
|
|
var shorthand_for = {
|
|
'border-bottom-width': require('./borderBottomWidth'),
|
|
'border-bottom-style': require('./borderBottomStyle'),
|
|
'border-bottom-color': require('./borderBottomColor')
|
|
};
|
|
|
|
var isValid = function isValid(v) {
|
|
return shorthandParser(v, shorthand_for) !== undefined;
|
|
};
|
|
module.exports.isValid = isValid;
|
|
|
|
module.exports.definition = {
|
|
set: shorthandSetter('border-bottom', shorthand_for),
|
|
get: shorthandGetter('border-bottom', shorthand_for),
|
|
enumerable: true,
|
|
configurable: true
|
|
};
|