Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16146,6 +16146,32 @@ declare var VideoPlaybackQuality: {
new(): VideoPlaybackQuality;
};

interface VisualViewportEventMap {
"resize": UIEvent;
"scroll": Event;
}

interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
onresize: ((this: VisualViewport, ev: UIEvent) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
readonly scale: number;
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var VisualViewport: {
prototype: VisualViewport;
new(): VisualViewport;
};

interface WEBGL_color_buffer_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGBA32F_EXT: GLenum;
Expand Down Expand Up @@ -18454,6 +18480,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
readonly styleMedia: StyleMedia;
readonly toolbar: BarProp;
readonly top: Window;
readonly visualViewport: VisualViewport;
readonly window: Window & typeof globalThis;
alert(message?: any): void;
blur(): void;
Expand Down Expand Up @@ -19482,6 +19509,7 @@ declare var statusbar: BarProp;
declare var styleMedia: StyleMedia;
declare var toolbar: BarProp;
declare var top: Window;
declare var visualViewport: VisualViewport;
declare var window: Window & typeof globalThis;
declare function alert(message?: any): void;
declare function blur(): void;
Expand Down
20 changes: 20 additions & 0 deletions inputfiles/idl/Web VisualViewport API.widl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
partial interface Window {
[SameObject, Replaceable] readonly attribute VisualViewport visualViewport;
};

[Exposed=Window]
interface VisualViewport : EventTarget {
readonly attribute double offsetLeft;
readonly attribute double offsetTop;

readonly attribute double pageLeft;
readonly attribute double pageTop;

readonly attribute double width;
readonly attribute double height;

readonly attribute double scale;

attribute EventHandler onresize;
attribute EventHandler onscroll;
};
4 changes: 4 additions & 0 deletions inputfiles/idlSources.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,10 @@
"url": "https://w3c.github.io/speech-api/",
"title": "Web Speech API"
},
{
"url": "https://wicg.github.io/visual-viewport/",
"title": "Web VisualViewport API"
},
{
"url": "https://www.w3.org/TR/webvtt1/",
"title": "WebVTT"
Expand Down