Skip to content

Instantly share code, notes, and snippets.

@aslushnikov
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save aslushnikov/3def7e5b6286339bf66a to your computer and use it in GitHub Desktop.

Select an option

Save aslushnikov/3def7e5b6286339bf66a to your computer and use it in GitHub Desktop.
CSSModel.prototype = {
stylesForNode: NodeStyle
styleSheets: Array<CSSStyleSheet>
}
/** CSSRule **/
CSSRule.Events = {
Outdated,
SelectorUpdated,
StyleUpdated
}
CSSRule.prototype = {
outdated: boolean
mediaList: ?Array<CSSMedia>
selectorList: ?Array<CSSSelector>
style: CSSStyleDeclaration
...
}
/** CSSMedia **/
CSSMedia.Events = {
Outdated,
Updated
}
CSSMedia.prototype = {
outdated: boolean
...
}
/** CSSStyleSheet **/
CSSStyleSheet.Events = {
TextUpdated
}
CSSStyleSheet.prototype = {
text: Promise<String>
setText: function(String)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment