Mixins / API

foldkit-mixins/testing

foldkit-mixins/testing: queries over a view drawn with the inert builder (SlotView.inertBuilder()), for tests that check what a view draws without a DOM. They read an element as the browser would: an attribute or a property, whichever the builder wrote, so a test need not know that title and value are properties while aria-label is an attribute. Frames.hold is for tests on the real runtime: input faster than a frame.

Namespaces

FramesThe page's animation frames, tracked from the moment track is called. Foldkit draws on requestAnimationFrame, so settle waits for what a transition asked to…
Inert

Interfaces

SettlesSomething with work of its own to finish before a page is settled, such as Sync.mount's handle.
TrackedFramesThe page's animation frames, tracked: held, released, and waited for.

Types

NodeAn element or text node of an inert tree.