summaryrefslogtreecommitdiff
path: root/alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js')
-rw-r--r--alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js b/alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js
new file mode 100644
index 0000000..68e8209
--- /dev/null
+++ b/alarm/node_modules/cssstyle/lib/properties/borderRightStyle.js
@@ -0,0 +1,21 @@
+'use strict';
+
+var isValid = require('./borderStyle').isValid;
+module.exports.isValid = isValid;
+
+module.exports.definition = {
+ set: function(v) {
+ if (isValid(v)) {
+ if (v.toLowerCase() === 'none') {
+ v = '';
+ this.removeProperty('border-right-width');
+ }
+ this._setProperty('border-right-style', v);
+ }
+ },
+ get: function() {
+ return this.getPropertyValue('border-right-style');
+ },
+ enumerable: true,
+ configurable: true,
+};