clear.js 373 B

12345678910111213141516
  1. 'use strict';
  2. var parseKeyword = require('../parsers').parseKeyword;
  3. var clear_keywords = ['none', 'left', 'right', 'both', 'inherit'];
  4. module.exports.definition = {
  5. set: function(v) {
  6. this._setProperty('clear', parseKeyword(v, clear_keywords));
  7. },
  8. get: function() {
  9. return this.getPropertyValue('clear');
  10. },
  11. enumerable: true,
  12. configurable: true,
  13. };