Sha256: 6c91715a59fc277941ad3a97631a3a560b24950170d7906e3cf6a3396c64c29f

Contents?: true

Size: 990 Bytes

Versions: 26

Compression:

Stored size: 990 Bytes

Contents

//.CommonJS
var CSSOM = {
  CSSRule: require("./CSSRule").CSSRule,
  CSSGroupingRule: require("./CSSGroupingRule").CSSGroupingRule,
  CSSConditionRule: require("./CSSConditionRule").CSSConditionRule
};
///CommonJS


/**
 * @constructor
 * @see https://drafts.csswg.org/css-conditional-3/#the-csssupportsrule-interface
 */
CSSOM.CSSSupportsRule = function CSSSupportsRule() {
  CSSOM.CSSConditionRule.call(this);
};

CSSOM.CSSSupportsRule.prototype = new CSSOM.CSSConditionRule();
CSSOM.CSSSupportsRule.prototype.constructor = CSSOM.CSSSupportsRule;
CSSOM.CSSSupportsRule.prototype.type = 12;

Object.defineProperty(CSSOM.CSSSupportsRule.prototype, "cssText", {
  get: function() {
    var cssTexts = [];

    for (var i = 0, length = this.cssRules.length; i < length; i++) {
      cssTexts.push(this.cssRules[i].cssText);
    }

    return "@supports " + this.conditionText + " {" + cssTexts.join("") + "}";
  }
});

//.CommonJS
exports.CSSSupportsRule = CSSOM.CSSSupportsRule;
///CommonJS

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/rrweb-cssom/lib/CSSSupportsRule.js