From 76cb9c2a39d477a64824a985ade40507e3bbade1 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Fri, 13 Feb 2026 21:34:48 -0800 Subject: feat(vanilla): add testing infrastructure and tests (NK-wjnczv) --- .../node_modules/@acemir/cssom/lib/StyleSheet.js | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 vanilla/node_modules/@acemir/cssom/lib/StyleSheet.js (limited to 'vanilla/node_modules/@acemir/cssom/lib/StyleSheet.js') diff --git a/vanilla/node_modules/@acemir/cssom/lib/StyleSheet.js b/vanilla/node_modules/@acemir/cssom/lib/StyleSheet.js new file mode 100644 index 0000000..1914400 --- /dev/null +++ b/vanilla/node_modules/@acemir/cssom/lib/StyleSheet.js @@ -0,0 +1,62 @@ +//.CommonJS +var CSSOM = { + MediaList: require("./MediaList").MediaList +}; +///CommonJS + + +/** + * @see http://dev.w3.org/csswg/cssom/#the-stylesheet-interface + */ +CSSOM.StyleSheet = function StyleSheet() { + this.__href = null; + this.__ownerNode = null; + this.__title = null; + this.__media = new CSSOM.MediaList(); + this.__parentStyleSheet = null; + this.disabled = false; +}; + +Object.defineProperties(CSSOM.StyleSheet.prototype, { + type: { + get: function() { + return "text/css"; + } + }, + href: { + get: function() { + return this.__href; + } + }, + ownerNode: { + get: function() { + return this.__ownerNode; + } + }, + title: { + get: function() { + return this.__title; + } + }, + media: { + get: function() { + return this.__media; + }, + set: function(value) { + if (typeof value === "string") { + this.__media.mediaText = value; + } else { + this.__media = value; + } + } + }, + parentStyleSheet: { + get: function() { + return this.__parentStyleSheet; + } + } +}); + +//.CommonJS +exports.StyleSheet = CSSOM.StyleSheet; +///CommonJS -- cgit v1.2.3