Skip to content

Commit f684a65

Browse files
authored
Merge pull request #491 from saschanaz/compatibility
Add Compatibility types
2 parents dbd6fe6 + e09d29b commit f684a65

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
@@ -5769,6 +5769,7 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
57695769
link: string;
57705770
/** @deprecated */
57715771
noWrap: boolean;
5772+
/** @deprecated */
57725773
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
57735774
onresize: ((this: HTMLBodyElement, ev: UIEvent) => any) | null;
57745775
/** @deprecated */
@@ -16086,6 +16087,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1608616087
onmspointerup: ((this: Window, ev: Event) => any) | null;
1608716088
onoffline: ((this: Window, ev: Event) => any) | null;
1608816089
ononline: ((this: Window, ev: Event) => any) | null;
16090+
/** @deprecated */
1608916091
onorientationchange: ((this: Window, ev: Event) => any) | null;
1609016092
onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
1609116093
onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
@@ -16120,6 +16122,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1612016122
onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
1612116123
onwaiting: ((this: Window, ev: Event) => any) | null;
1612216124
opener: any;
16125+
/** @deprecated */
1612316126
readonly orientation: string | number;
1612416127
readonly outerHeight: number;
1612516128
readonly outerWidth: number;
@@ -16997,6 +17000,7 @@ declare var onmspointerover: ((this: Window, ev: Event) => any) | null;
1699717000
declare var onmspointerup: ((this: Window, ev: Event) => any) | null;
1699817001
declare var onoffline: ((this: Window, ev: Event) => any) | null;
1699917002
declare var ononline: ((this: Window, ev: Event) => any) | null;
17003+
/** @deprecated */
1700017004
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
1700117005
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
1700217006
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
@@ -17031,6 +17035,7 @@ declare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) |
1703117035
declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
1703217036
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
1703317037
declare var opener: any;
17038+
/** @deprecated */
1703417039
declare var orientation: string | number;
1703517040
declare var outerHeight: number;
1703617041
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)