Documentation
    Preparing search index...

    Interface AccessibilityMirror

    The installed §75 mirror: a visually-hidden container, a sync API, and a disposer.

    interface AccessibilityMirror {
        fontScale: number;
        highContrast: boolean;
        reducedMotion: boolean;
        root: ElementLike;
        dispose(): void;
        elementFor(widget: UIWidget): ElementLike | undefined;
        sync(widget: UIWidget): void;
        syncAll(): void;
    }

    Hierarchy (View Summary)

    Index
    fontScale: number

    The AccessibilityMirrorOptions.fontScale written onto the container.

    highContrast: boolean

    Whether the high-contrast hook is active on AccessibilityMirror.root.

    reducedMotion: boolean

    The visually-hidden container — the root of the projected tree.

    • Removes the container from the document. Idempotent.

      Returns void

    • The projected element for widget, or undefined when it is not mirrored.

      Parameters

      Returns ElementLike | undefined

    • Pushes widget's current accessibility surface into the DOM.

      Parameters

      Returns void

    • Re-walks every root and syncs (and drops stale projections).

      Returns void