Type

data class Type(val location: CssLocation, val name: String, val combinator: CssCombinator? = null) : Selector(source)

Represents a type selector (e.g., div, p).

Constructors

Link copied to clipboard
constructor(location: CssLocation, name: String, combinator: CssCombinator? = null)

Properties

Link copied to clipboard
open override val combinator: CssCombinator?

The combinator used to combine this selector with other selectors (e.g., descendant, child, adjacent sibling).

Link copied to clipboard
open override val location: CssLocation
Link copied to clipboard
open override val name: String

The name of the selector (e.g., tag name, class name, ID).

Functions

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