OrSelector

class OrSelector(val a: Selector, val b: Selector) : Selector

A ThemeSelector, which matches, when either a or b match.

Constructors

Link copied to clipboard
constructor(a: Selector, b: Selector)

Properties

Link copied to clipboard
val a: Selector
Link copied to clipboard
val b: Selector

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