aboutsummaryrefslogtreecommitdiff
path: root/node_modules/cssstyle/lib/properties/color.js
blob: 1b5ca3dcdea229544f6f713b1f44ccd140853ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

var parseColor = require('../parsers').parseColor;

module.exports.definition = {
  set: function(v) {
    this._setProperty('color', parseColor(v));
  },
  get: function() {
    return this.getPropertyValue('color');
  },
  enumerable: true,
  configurable: true,
};