aboutsummaryrefslogtreecommitdiff
path: root/node_modules/cssstyle/lib/properties/borderTopWidth.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/cssstyle/lib/properties/borderTopWidth.js')
-rw-r--r--node_modules/cssstyle/lib/properties/borderTopWidth.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/node_modules/cssstyle/lib/properties/borderTopWidth.js b/node_modules/cssstyle/lib/properties/borderTopWidth.js
new file mode 100644
index 0000000..9407253
--- /dev/null
+++ b/node_modules/cssstyle/lib/properties/borderTopWidth.js
@@ -0,0 +1,17 @@
+'use strict';
+
+var isValid = require('./borderWidth').isValid;
+module.exports.isValid = isValid;
+
+module.exports.definition = {
+ set: function(v) {
+ if (isValid(v)) {
+ this._setProperty('border-top-width', v);
+ }
+ },
+ get: function() {
+ return this.getPropertyValue('border-top-width');
+ },
+ enumerable: true,
+ configurable: true,
+};