cssstyle
Version:
CSSStyleDeclaration Object Model implementation
20 lines (17 loc) • 414 B
JavaScript
const parsers = require("../parsers");
exports.getPropertyDescriptor = function getPropertyDescriptor(property) {
return {
set(v) {
v = parsers.parsePropertyValue(property, v, {
globalObject: this._global
});
this._setProperty(property, v);
},
get() {
return this.getPropertyValue(property);
},
enumerable: true,
configurable: true
};
};
;