An iterator for traversing siblings of a DOM node.
A ReactiveController which tracks whether a slot is populated.
As findActiveElement, but returns a list of the active elements as seen by each Document and ShadowRoot down to the actually active element.
Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets cancelled.
Wait for any animations running on the element to complete.
Call window.requestAnimationFrame with the provided callback and return a Disposable which will cancel the request when disposed.
Assign a unique ID to the target element.
Return a promise which will resolve when the next animation frame happens.
Get the user's dark mode preference.
Dig through shadow roots to find the actual element that currently has focus. If nothing has focus in or below the given root, return undefined.
Find the first ancestor of the given child element matching the provided
predicate function, walking up through shadow root boundaries.
Return all descendants of root which match the predicate function.
Find the first EventTarget going up an Event.composedPath
which matches the given predicate.
Check if any animations are currently active on an element.
Test whether an Element should be considered an editor, ie. something
which expects to consume keydown events.
Given the name of a custom DOM element registered in Window.customElements, test whether an object is an instance of that element.
Get a signal which reflects the current state of a media query.
Test whether the user has asked for reduced motion.
Scroll an element into view.
Stops all active animations on the target element. Returns a promise that resolves after all animations are cancelled.
DOM manipulation tools.