Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81143 views
1
//.CommonJS
2
var CSSOM = {
3
CSSRule: require("./CSSRule").CSSRule,
4
CSSStyleDeclaration: require('./CSSStyleDeclaration').CSSStyleDeclaration
5
};
6
///CommonJS
7
8
9
/**
10
* @constructor
11
* @see http://www.w3.org/TR/css3-animations/#DOM-CSSKeyframeRule
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
//FIXME
24
//CSSOM.CSSKeyframeRule.prototype.insertRule = CSSStyleSheet.prototype.insertRule;
25
//CSSOM.CSSKeyframeRule.prototype.deleteRule = CSSStyleSheet.prototype.deleteRule;
26
27
// http://www.opensource.apple.com/source/WebCore/WebCore-955.66.1/css/WebKitCSSKeyframeRule.cpp
28
Object.defineProperty(CSSOM.CSSKeyframeRule.prototype, "cssText", {
29
get: function() {
30
return this.keyText + " {" + this.style.cssText + "} ";
31
}
32
});
33
34
35
//.CommonJS
36
exports.CSSKeyframeRule = CSSOM.CSSKeyframeRule;
37
///CommonJS
38
39