ResolvedSpec

data class ResolvedSpec(val viewport: Viewport, val root: ResolvedNode)

The fully-resolved document produced by resolve, ready for a renderer to walk.

Every cascade rule, user-agent default, active breakpoint, and inherited text property has already been applied to the root tree, so renderers traverse it without re-evaluating anything. It corresponds to a source com.j0y.joy.dom.serialization.Spec resolved against a specific viewport.

Constructors

Link copied to clipboard
constructor(viewport: Viewport, root: ResolvedNode)

Properties

Link copied to clipboard

The resolved root node of the document, corresponding to the source spec's layout node.

Link copied to clipboard

The viewport this document was resolved against; breakpoints were evaluated relative to these dimensions, so the tree is valid only for this viewport.