Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CSSSupportsRule.js 990B

123456789101112131415161718192021222324252627282930313233343536
  1. //.CommonJS
  2. var CSSOM = {
  3. CSSRule: require("./CSSRule").CSSRule,
  4. CSSGroupingRule: require("./CSSGroupingRule").CSSGroupingRule,
  5. CSSConditionRule: require("./CSSConditionRule").CSSConditionRule
  6. };
  7. ///CommonJS
  8. /**
  9. * @constructor
  10. * @see https://drafts.csswg.org/css-conditional-3/#the-csssupportsrule-interface
  11. */
  12. CSSOM.CSSSupportsRule = function CSSSupportsRule() {
  13. CSSOM.CSSConditionRule.call(this);
  14. };
  15. CSSOM.CSSSupportsRule.prototype = new CSSOM.CSSConditionRule();
  16. CSSOM.CSSSupportsRule.prototype.constructor = CSSOM.CSSSupportsRule;
  17. CSSOM.CSSSupportsRule.prototype.type = 12;
  18. Object.defineProperty(CSSOM.CSSSupportsRule.prototype, "cssText", {
  19. get: function() {
  20. var cssTexts = [];
  21. for (var i = 0, length = this.cssRules.length; i < length; i++) {
  22. cssTexts.push(this.cssRules[i].cssText);
  23. }
  24. return "@supports " + this.conditionText + " {" + cssTexts.join("") + "}";
  25. }
  26. });
  27. //.CommonJS
  28. exports.CSSSupportsRule = CSSOM.CSSSupportsRule;
  29. ///CommonJS