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

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

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