cssstyle
Version:
CSSStyleDeclaration Object Model implementation
17 lines (14 loc) • 356 B
JavaScript
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
};
};
;