blob: f3c6b2e9d21a525e80461a22e511c672ce05ba87 [file] [log] [blame]
Victor Porof6e096922022-06-10 13:01:051// GENERATED CONTENT - DO NOT EDIT
2// Content was automatically extracted by Reffy into webref
3// (https://github.com/w3c/webref)
4// Source: CSS Custom Highlight API Module Level 1 (https://drafts.csswg.org/css-highlight-api-1/)
5
6enum HighlightType {
7 "highlight",
8 "spelling-error",
9 "grammar-error"
10};
11
12[Exposed=Window]
13interface Highlight {
14 constructor(AbstractRange... initialRanges);
15 setlike<AbstractRange>;
16 attribute long priority;
17 attribute HighlightType type;
18};
19
20partial namespace CSS {
21 readonly attribute HighlightRegistry highlights;
22};
23
24[Exposed=Window]
25interface HighlightRegistry {
26 maplike<DOMString, Highlight>;
27};