Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81145 views
1
'use strict';
2
3
var shorthandSetter = require('../parsers').shorthandSetter;
4
var shorthandGetter = require('../parsers').shorthandGetter;
5
var shorthandParser = require('../parsers').shorthandParser;
6
7
var shorthand_for = {
8
'border-top-width': require('./borderTopWidth'),
9
'border-top-style': require('./borderTopStyle'),
10
'border-top-color': require('./borderTopColor')
11
};
12
13
module.exports.isValid = function (v) {
14
return shorthandParser(v, shorthand_for) !== undefined;
15
};
16
17
module.exports.definition = {
18
set: shorthandSetter('border-top', shorthand_for),
19
get: shorthandGetter('border-top', shorthand_for),
20
enumerable: true,
21
configurable: true
22
};
23
24