Skip to content

Commit e09d29b

Browse files
committed
add Compatibility types
1 parent acf9e8d commit e09d29b

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5772,6 +5772,7 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
57725772
link: string;
57735773
/** @deprecated */
57745774
noWrap: boolean;
5775+
/** @deprecated */
57755776
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
57765777
onresize: ((this: HTMLBodyElement, ev: UIEvent) => any) | null;
57775778
/** @deprecated */
@@ -16090,6 +16091,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1609016091
onmspointerup: ((this: Window, ev: Event) => any) | null;
1609116092
onoffline: ((this: Window, ev: Event) => any) | null;
1609216093
ononline: ((this: Window, ev: Event) => any) | null;
16094+
/** @deprecated */
1609316095
onorientationchange: ((this: Window, ev: Event) => any) | null;
1609416096
onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
1609516097
onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
@@ -16124,6 +16126,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1612416126
onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
1612516127
onwaiting: ((this: Window, ev: Event) => any) | null;
1612616128
opener: any;
16129+
/** @deprecated */
1612716130
readonly orientation: string | number;
1612816131
readonly outerHeight: number;
1612916132
readonly outerWidth: number;
@@ -17001,6 +17004,7 @@ declare var onmspointerover: ((this: Window, ev: Event) => any) | null;
1700117004
declare var onmspointerup: ((this: Window, ev: Event) => any) | null;
1700217005
declare var onoffline: ((this: Window, ev: Event) => any) | null;
1700317006
declare var ononline: ((this: Window, ev: Event) => any) | null;
17007+
/** @deprecated */
1700417008
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
1700517009
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
1700617010
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
@@ -17035,6 +17039,7 @@ declare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) |
1703517039
declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
1703617040
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
1703717041
declare var opener: any;
17042+
/** @deprecated */
1703817043
declare var orientation: string | number;
1703917044
declare var outerHeight: number;
1704017045
declare var outerWidth: number;

inputfiles/idl/Compatibility.widl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
partial interface Window {
2+
readonly attribute short orientation;
3+
attribute EventHandler onorientationchange;
4+
};
5+
6+
partial interface HTMLBodyElement {
7+
attribute EventHandler onorientationchange;
8+
};

inputfiles/idlSources.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"url": "https://compat.spec.whatwg.org/",
4+
"title": "Compatibility",
5+
"deprecated": true
6+
},
27
{
38
"url": "https://www.w3.org/TR/css-animations-1/",
49
"title": "CSS Animations"

0 commit comments

Comments
 (0)