Skip to content

Truly independent web browser

416 B
Raw Blame
// https://drafts.csswg.org/css-highlight-api-1/#enumdef-highlighttype
enum HighlightType {
    "highlight",
    "spelling-error",
    "grammar-error"
};

// https://drafts.csswg.org/css-highlight-api-1/#highlight
[Exposed=Window, ImplementedIn=Rust]
interface Highlight {
    constructor(AbstractRange... initialRanges);
    setlike<AbstractRange>;
    attribute long priority;
    attribute HighlightType type;
};