Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.15 KB

AstRule.md

File metadata and controls

46 lines (26 loc) · 1.15 KB

css-selector-parser / Exports / AstRule

Interface: 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.

Table of contents

Properties

Properties

combinator

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

items: (AstTagName | AstWildcardTag | AstId | AstClassName | AstPseudoClass | AstAttribute | AstPseudoElement)[]

Items of a CSS rule. Can be tag, ids, class names, pseudo-classes and pseudo-elements.


nestedRule

Optional nestedRule: AstRule

Nested rule if specified (i.e. "div > span").


type

type: "Rule"