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())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the specificity of the selector

Functions

Link copied to clipboard
Link copied to clipboard

the selector of CSS, from the first compound to this

Link copied to clipboard
open override fun toString(): String