css-selector-parser / Exports / AstRule
A single CSS rule that contains match conditions.
Can nest another rule with or without a combinator (i.e. "div > span"
).
Generated by ast.rule.
• Optional
combinator: string
Rule combinator which was used to nest this rule (i.e. ">"
in case of "div > span"
if the current rule is "span"
).
• items: (AstTagName
| AstWildcardTag
| AstId
| AstClassName
| AstPseudoClass
| AstAttribute
| AstPseudoElement
)[]
Items of a CSS rule. Can be tag, ids, class names, pseudo-classes and pseudo-elements.
• Optional
nestedRule: AstRule
Nested rule if specified (i.e. "div > span"
).
• type: "Rule"