|
123456789101112131415161718192021222324252627282930313233 |
- "use strict";
- var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- const CSSRule_1 = __importDefault(require("../CSSRule"));
- const CSSStyleDeclaration_1 = __importDefault(require("../declaration/CSSStyleDeclaration"));
- /**
- * CSSRule interface.
- */
- class CSSFontFaceRule extends CSSRule_1.default {
- constructor() {
- super(...arguments);
- this.type = CSSRule_1.default.FONT_FACE_RULE;
- this._cssText = '';
- this._style = null;
- }
- /**
- * Returns style.
- *
- * @returns Style.
- */
- get style() {
- if (!this._style) {
- this._style = new CSSStyleDeclaration_1.default();
- this._style.parentRule = this;
- this._style.cssText = this._cssText;
- }
- return this._style;
- }
- }
- exports.default = CSSFontFaceRule;
- //# sourceMappingURL=CSSFontFaceRule.js.map
|