Class Css
Utility for styles
Defined in: css.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Css()
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Css.getInstanceForStyleSheet(styleSheet, ownerDocument)
Retrieves the instance number for a given style sheet.
|
<static> |
Css.parseCSSProps(style, element)
Parses the CSS properties of a CSSStyleRule
|
Method Detail
<static>
Css.getInstanceForStyleSheet(styleSheet, ownerDocument)
Retrieves the instance number for a given style sheet. The instance number
is sheet's index within the set of all other sheets whose URL is the same.
- Parameters:
- styleSheet
- ownerDocument
<static>
{Array}
Css.parseCSSProps(style, element)
Parses the CSS properties of a CSSStyleRule
- Parameters:
- {Object} style
- CSSStyleRule to get the properties of
- {Object} element
- Element to which the style applies. Needed for parsing shorthand properties correctly.
- Returns:
- {Array} Properties represented by {name, value, priority, longhandProps}