CompoundSelector
class CompoundSelector(var previous: Pair<Combinator, CompoundSelector>? = null, selectors: List<SimpleSelector> = emptyList())(source)
A selector of elements, the last compound of a selector of CSS: the selectors that the element matches, and the previous compound with the combinator that relates them, as .sidebar > button:hover. Build them with has and and, or from CSS with CompoundSelector.parse; they match with the selectors of CSS, see ComplexSelector.
Constructors
Link copied to clipboard
constructor(previous: Pair<Combinator, CompoundSelector>? = null, selectors: List<SimpleSelector> = emptyList())