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/ee02ea6efdf88369ef1f to your computer and use it in GitHub Desktop.

Select an option

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