aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js')
-rw-r--r--vanilla/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/vanilla/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js b/vanilla/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js
new file mode 100644
index 0000000..b9dedb4
--- /dev/null
+++ b/vanilla/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js
@@ -0,0 +1,22 @@
+"use strict";
+const cssstyle = require("cssstyle");
+
+class ElementCSSInlineStyle {
+ _initElementCSSInlineStyle() {
+ this._settingCssText = false;
+ this._style = new cssstyle.CSSStyleDeclaration(newCssText => {
+ if (!this._settingCssText) {
+ this._settingCssText = true;
+ this.setAttributeNS(null, "style", newCssText);
+ this._settingCssText = false;
+ }
+ });
+ }
+ get style() {
+ return this._style;
+ }
+}
+
+module.exports = {
+ implementation: ElementCSSInlineStyle
+};