Sha256: a6cf9265253a183f0b40a4220c33bc218d0136d09f8447d17eefcddeb76d00ca
Contents?: true
Size: 1022 Bytes
Versions: 26
Compression:
Stored size: 1022 Bytes
Contents
//.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
Version data entries
26 entries across 26 versions & 1 rubygems