bindings/cssom_1 library
CSS Object Model (CSSOM)
Classes
- Css
- The interface holds useful CSS-related methods. No objects with this interface are implemented: it contains only static methods and is therefore a utilitarian interface.
- CSSGroupingRule
-
The interface of the
CSS Object Model
represents any CSSat-rule
that contains other rules nested within it. - CSSImportRule
-
The interface represents an
@import
at-rule
. - CSSMarginRule
- CSSNamespaceRule
-
The interface describes an object representing a single CSS
@namespace
at-rule
. - CSSPageRule
-
represents a single CSS
@page
rule. - CSSRule
- The interface represents a single CSS rule. There are several types of rules which inherit properties from .
- CSSRuleList
-
A represents an ordered collection of read-only CSSRule
objects.
While the object is read-only, and cannot be directly modified,
it is considered a
live
object, as the content can change over time. To edit the underlying rules returned by CSSRule objects, useCSSStyleSheet.insertRule()
andCSSStyleSheet.deleteRule()
, which are methods of CSSStyleSheet. The interface has no constructor. An instance of is returned by CSSStyleSheet.cssRules andCSSKeyframesRule.cssRules
. - CSSStyleDeclaration
- The interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties. A object can be exposed using three different APIs:
- CSSStyleRule
- The interface represents a single CSS style rule.
- CSSStyleSheet
- The interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet. It inherits properties and methods from its parent, StyleSheet.
- CSSStyleSheetInit
- ElementCSSInlineStyle
- LinkStyle
- MediaList
-
The interface represents the media queries of a stylesheet, e.g.
those set using a
<link>
element'smedia
attribute. - StyleSheet
- An object implementing the interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
- StyleSheetList
-
The interface represents a list of CSSStyleSheet objects. An
instance of this object can be returned by
Document.styleSheets
. It is an array-like object but can't be iterated over using Array methods. However it can be iterated over in a standardfor
loop over its indices, or converted to an Array.
Extensions
- PropsCss on Css
- PropsCSSGroupingRule on CSSGroupingRule
- PropsCSSImportRule on CSSImportRule
- PropsCSSMarginRule on CSSMarginRule
- PropsCSSNamespaceRule on CSSNamespaceRule
- PropsCSSPageRule on CSSPageRule
- PropsCSSRule on CSSRule
- PropsCSSRuleList on CSSRuleList
- PropsCSSStyleDeclaration on CSSStyleDeclaration
- PropsCSSStyleRule on CSSStyleRule
- PropsCSSStyleSheet on CSSStyleSheet
- PropsCSSStyleSheetInit on CSSStyleSheetInit
- PropsElementCSSInlineStyle on ElementCSSInlineStyle
- PropsLinkStyle on LinkStyle
- PropsMediaList on MediaList
- PropsStyleSheet on StyleSheet
- PropsStyleSheetList on StyleSheetList