UNPKG

cssstyle

Version:

CSSStyleDeclaration Object Model implementation

17 lines (14 loc) 356 B
"use strict"; const prepareValue = require("../parsers").prepareValue; module.exports.getPropertyDescriptor = function getPropertyDescriptor(property) { return { set(v) { this._setProperty(property, prepareValue(v)); }, get() { return this.getPropertyValue(property); }, enumerable: true, configurable: true }; };