DescendantSelector

class DescendantSelector(val ancestorSelector: Selector, val childSelector: Selector) : Selector

Equivalent to the CSS selector :

.ancestor .child

Constructors

Link copied to clipboard
constructor(ancestorSelector: Selector, childSelector: Selector)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun alwaysMatches(node: Node): Boolean

Does node match, regardless of pseudoStyles?

Link copied to clipboard
infix fun Selector.and(other: String): AndSelector
infix fun Selector.and(other: Selector): AndSelector
Link copied to clipboard
Link copied to clipboard
open override fun couldMatch(node: Node): Boolean

Could node match, if pseudoStyles matched?

Link copied to clipboard
open override fun importance(): Int

When two or more rules match, and define the same property, which rule should win? Highest wins. In the event of a tie, the later rule wins.

Link copied to clipboard
open override fun matches(node: Node): Boolean
Link copied to clipboard
infix fun Selector.or(other: String): OrSelector
infix fun Selector.or(other: Selector): OrSelector
Link copied to clipboard
open override fun toString(): String