summaryrefslogtreecommitdiff
path: root/alarm/node_modules/cssstyle/lib/properties/clear.js
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/cssstyle/lib/properties/clear.js')
-rw-r--r--alarm/node_modules/cssstyle/lib/properties/clear.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/alarm/node_modules/cssstyle/lib/properties/clear.js b/alarm/node_modules/cssstyle/lib/properties/clear.js
new file mode 100644
index 0000000..22d9802
--- /dev/null
+++ b/alarm/node_modules/cssstyle/lib/properties/clear.js
@@ -0,0 +1,16 @@
+'use strict';
+
+var parseKeyword = require('../parsers').parseKeyword;
+
+var clear_keywords = ['none', 'left', 'right', 'both', 'inherit'];
+
+module.exports.definition = {
+ set: function(v) {
+ this._setProperty('clear', parseKeyword(v, clear_keywords));
+ },
+ get: function() {
+ return this.getPropertyValue('clear');
+ },
+ enumerable: true,
+ configurable: true,
+};