1 |
|
2 | var CSSOM = {
|
3 | CSSRule: require("./CSSRule").CSSRule,
|
4 | CSSStyleDeclaration: require('./CSSStyleDeclaration').CSSStyleDeclaration
|
5 | };
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | CSSOM.CSSKeyframeRule = function CSSKeyframeRule() {
|
14 | CSSOM.CSSRule.call(this);
|
15 | this.keyText = '';
|
16 | this.style = new CSSOM.CSSStyleDeclaration();
|
17 | this.style.parentRule = this;
|
18 | };
|
19 |
|
20 | CSSOM.CSSKeyframeRule.prototype = new CSSOM.CSSRule();
|
21 | CSSOM.CSSKeyframeRule.prototype.constructor = CSSOM.CSSKeyframeRule;
|
22 | CSSOM.CSSKeyframeRule.prototype.type = 9;
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | Object.defineProperty(CSSOM.CSSKeyframeRule.prototype, "cssText", {
|
29 | get: function() {
|
30 | return this.keyText + " {" + this.style.cssText + "} ";
|
31 | }
|
32 | });
|
33 |
|
34 |
|
35 |
|
36 | exports.CSSKeyframeRule = CSSOM.CSSKeyframeRule;
|
37 |
|