Skip to main content
Glama
CSSStartingStyleRule.js1.02 kB
//.CommonJS var CSSOM = { CSSRule: require("./CSSRule").CSSRule }; ///CommonJS /** * @constructor * @see http://www.w3.org/TR/shadow-dom/#host-at-rule */ CSSOM.CSSStartingStyleRule = function CSSStartingStyleRule() { CSSOM.CSSRule.call(this); this.cssRules = []; }; CSSOM.CSSStartingStyleRule.prototype = new CSSOM.CSSRule(); CSSOM.CSSStartingStyleRule.prototype.constructor = CSSOM.CSSStartingStyleRule; CSSOM.CSSStartingStyleRule.prototype.type = 1002; //FIXME //CSSOM.CSSStartingStyleRule.prototype.insertRule = CSSStyleSheet.prototype.insertRule; //CSSOM.CSSStartingStyleRule.prototype.deleteRule = CSSStyleSheet.prototype.deleteRule; Object.defineProperty(CSSOM.CSSStartingStyleRule.prototype, "cssText", { get: function() { var cssTexts = []; for (var i=0, length=this.cssRules.length; i < length; i++) { cssTexts.push(this.cssRules[i].cssText); } return "@starting-style {" + cssTexts.join("") + "}"; } }); //.CommonJS exports.CSSStartingStyleRule = CSSOM.CSSStartingStyleRule; ///CommonJS

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JoaoPedroLanca/mcp-web-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server