From 5a0a2a496b75c79b27777f2ee5faf00372ce1b74 Mon Sep 17 00:00:00 2001
From: Mike Pennisi
-The
-
-The {{CSSGroupingRule}} interface represents an at-rule that contains other rules nested inside itself.
-
-CSSGroupingRule interface
-[Exposed=Window]
-interface CSSGroupingRule : CSSRule {
- readonly attribute CSSRuleList cssRules;
- unsigned long insertRule (CSSOMString rule, unsigned long index);
- void deleteRule (unsigned long index);
-};
-
-
-
-
-
-cssRules of type CSSRuleList, readonly
- cssRules attribute must return a CSSRuleList
- object for the list of CSS rules nested inside the grouping rule.
-
-
-
-
insertRule(CSSOMString rule, unsigned long index), returns
- unsigned long
- insertRule operation must
- insert a CSS rule rule
- into the CSS rule list returned by cssRules,
- such that the inserted rule will be at position index,
- and any rules previously at index or higher
- will increase their index by one.
- It must throw INDEX_SIZE_ERR
- if index is greater than cssRules.length.
- It must throw SYNTAX_ERR
- if rule has a syntax error and is unparseable;
- this does not include syntax errors handled by error handling rules
- for constructs inside of the rule,
- but this does include cases where the string given
- does not parse into a single CSS rule (such as when the string is empty)
- or where there is anything other than whitespace or comments
- after that single CSS rule.
- It must throw HIERARCHY_REQUEST_ERR
- if the rule cannot be inserted at the location specified,
- for example, if an ''@import'' rule is inserted inside a group rule.
-
- The return value is the index parameter.
-
- deleteRule (unsigned long index), return void
- deleteRule operation must
- remove a CSS rule from
- the CSS rule list returned by cssRules at index.
- It must throw INDEX_SIZE_ERR
- if index is greater than or equal to cssRules.length.
-
The
CSSConditionRule interface