diff --git a/.gitattributes b/.gitattributes index e3d63f912db6c517355a9a1b6ada0f9e32d91ba5..90c3cc54af59ca5bc81c7a18cd540ec068f42a56 100644 --- a/.gitattributes +++ b/.gitattributes @@ -51,3 +51,5 @@ node_modules/gifwrap/test/fixtures/quantized/hairstreak32_Sorokin.png filter=lfs node_modules/gifwrap/test/fixtures/quantized/hairstreak32_Wu.png filter=lfs diff=lfs merge=lfs -text node_modules/gifwrap/test/fixtures/quantized/sculptmap256_Sorokin_FloydSteinberg.png filter=lfs diff=lfs merge=lfs -text node_modules/gifwrap/test/fixtures/rnaples-offsets-public.gif filter=lfs diff=lfs merge=lfs -text +node_modules/lightningcss-linux-x64-gnu/lightningcss.linux-x64-gnu.node filter=lfs diff=lfs merge=lfs -text +node_modules/lightningcss-linux-x64-musl/lightningcss.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text diff --git a/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js b/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js new file mode 100644 index 0000000000000000000000000000000000000000..9c00e6e322c6a8c81e41e0bb2abb8b70fd63f3d7 --- /dev/null +++ b/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js @@ -0,0 +1,9 @@ +"use strict"; + +const HTMLElementImpl = require("./HTMLElement-impl").implementation; + +class HTMLSpanElementImpl extends HTMLElementImpl { } + +module.exports = { + implementation: HTMLSpanElementImpl +}; diff --git a/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js b/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js new file mode 100644 index 0000000000000000000000000000000000000000..74f0939b492b7fbc2168063c9d07f7c85248a708 --- /dev/null +++ b/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js @@ -0,0 +1,83 @@ +"use strict"; +const HTMLElementImpl = require("./HTMLElement-impl").implementation; +const { addStyleSheet, removeStyleSheet, createStyleSheetForElement } = require("../css/helpers/stylesheets"); +const { childTextContent } = require("../helpers/text"); +const { asciiCaseInsensitiveMatch } = require("../helpers/strings"); + +class HTMLStyleElementImpl extends HTMLElementImpl { + constructor(globalObject, args, privateData) { + super(globalObject, args, privateData); + + this.sheet = null; + this._isOnStackOfOpenElements = false; + } + + get disabled() { + return this.sheet?.disabled ?? false; + } + + set disabled(value) { + if (this.sheet) { + this.sheet.disabled = value; + } + } + + _attach() { + super._attach(); + if (!this._isOnStackOfOpenElements) { + this._updateAStyleBlock(); + } + } + + _detach() { + super._detach(); + if (!this._isOnStackOfOpenElements) { + this._updateAStyleBlock(); + } + } + + _childTextContentChangeSteps() { + super._childTextContentChangeSteps(); + + // This guard is not required by the spec, but should be unobservable (since you can't run script during the middle + // of parsing a