Skip to content

Truly independent web browser

582 B
Raw Blame
// https://drafts.csswg.org/css-highlight-api-1/#highlightregistry
[Exposed=Window, ImplementedIn=Rust]
interface HighlightRegistry {
    maplike<DOMString, Highlight>;
};

// https://drafts.csswg.org/css-highlight-api-1/#interactions
partial interface HighlightRegistry {
    sequence<HighlightHitResult> highlightsFromPoint(float x, float y, optional HighlightsFromPointOptions options = {});
};

dictionary HighlightHitResult {
    Highlight highlight;
    sequence<AbstractRange> ranges;
};

dictionary HighlightsFromPointOptions {
    sequence<ShadowRoot> shadowRoots = [];
};