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/MediaList.js | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 vanilla/node_modules/@acemir/cssom/lib/MediaList.js (limited to 'vanilla/node_modules/@acemir/cssom/lib/MediaList.js') diff --git a/vanilla/node_modules/@acemir/cssom/lib/MediaList.js b/vanilla/node_modules/@acemir/cssom/lib/MediaList.js new file mode 100644 index 0000000..bc40470 --- /dev/null +++ b/vanilla/node_modules/@acemir/cssom/lib/MediaList.js @@ -0,0 +1,78 @@ +//.CommonJS +var CSSOM = {}; +///CommonJS + + +/** + * @constructor + * @see http://dev.w3.org/csswg/cssom/#the-medialist-interface + */ +CSSOM.MediaList = function MediaList(){ + this.length = 0; +}; + +CSSOM.MediaList.prototype = { + + constructor: CSSOM.MediaList, + + /** + * @return {string} + */ + get mediaText() { + return Array.prototype.join.call(this, ", "); + }, + + /** + * @param {string} value + */ + set mediaText(value) { + if (typeof value === "string") { + var values = value.split(",").filter(function(text){ + return !!text; + }); + var length = this.length = values.length; + for (var i=0; i