123456789101112131415161718192021222324252627282930313233343536 |
- var CSSOM = {
- CSSStyleDeclaration: require("./CSSStyleDeclaration").CSSStyleDeclaration,
- CSSRule: require("./CSSRule").CSSRule
- };
- CSSOM.CSSFontFaceRule = function CSSFontFaceRule() {
- CSSOM.CSSRule.call(this);
- this.style = new CSSOM.CSSStyleDeclaration();
- this.style.parentRule = this;
- };
- CSSOM.CSSFontFaceRule.prototype = new CSSOM.CSSRule();
- CSSOM.CSSFontFaceRule.prototype.constructor = CSSOM.CSSFontFaceRule;
- CSSOM.CSSFontFaceRule.prototype.type = 5;
- Object.defineProperty(CSSOM.CSSFontFaceRule.prototype, "cssText", {
- get: function() {
- return "@font-face {" + this.style.cssText + "}";
- }
- });
- exports.CSSFontFaceRule = CSSOM.CSSFontFaceRule;
|