File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ enum ResizeObserverBoxOptions {
2
+ "border-box", "content-box", "device-pixel-content-box"
3
+ };
4
+
5
+ dictionary ResizeObserverOptions {
6
+ ResizeObserverBoxOptions box = "content-box";
7
+ };
8
+
9
+ [Exposed=(Window),
10
+ Constructor(ResizeObserverCallback callback)]
11
+ interface ResizeObserver {
12
+ void observe(Element target, optional ResizeObserverOptions options);
13
+ void unobserve(Element target);
14
+ void disconnect();
15
+ };
16
+
17
+ callback ResizeObserverCallback = void (sequence<ResizeObserverEntry> entries, ResizeObserver observer);
18
+
19
+ [Exposed=Window]
20
+ interface ResizeObserverEntry {
21
+ readonly attribute Element target;
22
+ readonly attribute DOMRectReadOnly contentRect;
23
+ readonly attribute sequence<ResizeObserverSize> borderBoxSize;
24
+ readonly attribute sequence<ResizeObserverSize> contentBoxSize;
25
+ readonly attribute sequence<ResizeObserverSize> devicePixelContentBoxSize;
26
+ };
27
+
28
+ interface ResizeObserverSize {
29
+ readonly attribute unrestricted double inlineSize;
30
+ readonly attribute unrestricted double blockSize;
31
+ };
32
+
33
+ [Constructor(Element target)
34
+ ]
35
+ interface ResizeObservation {
36
+ readonly attribute Element target;
37
+ readonly attribute ResizeObserverBoxOptions observedBox;
38
+ readonly attribute sequence<ResizeObserverSize> lastReportedSizes;
39
+ };
Original file line number Diff line number Diff line change 430
430
"url" : " https://www.w3.org/TR/referrer-policy/" ,
431
431
"title" : " Referrer Policy"
432
432
},
433
+ {
434
+ "url" : " https://www.w3.org/TR/resize-observer/" ,
435
+ "title" : " Resize Observer"
436
+ },
433
437
{
434
438
"url" : " https://w3c.github.io/resource-timing/" ,
435
439
"title" : " Resource Timing"
You can’t perform that action at this time.
0 commit comments