1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */

use crate::dom::types::*;
use crate::dom::bindings::conversions::{DerivedFrom, get_dom_class};
use crate::dom::bindings::inheritance::Castable;
use crate::dom::bindings::root::{Dom, DomRoot, LayoutDom};
use crate::dom::bindings::trace::JSTraceable;
use crate::dom::bindings::reflector::DomObject;
use js::jsapi::JSTracer;

use std::mem;

#[derive(Copy)]
pub union TopTypeId {
    /// ID used by abstract interfaces.
    pub abstract_: (),
    /// ID used by interfaces that are not castable.
    pub alone: (),
    /// ID used by interfaces that derive from Blob.
    pub blob: BlobTypeId,
    /// ID used by interfaces that derive from CSSRule.
    pub cssrule: CSSRuleTypeId,
    /// ID used by interfaces that derive from DOMException.
    pub domexception: DOMExceptionTypeId,
    /// ID used by interfaces that derive from DOMMatrixReadOnly.
    pub dommatrixreadonly: DOMMatrixReadOnlyTypeId,
    /// ID used by interfaces that derive from DOMPointReadOnly.
    pub dompointreadonly: DOMPointReadOnlyTypeId,
    /// ID used by interfaces that derive from DOMRectReadOnly.
    pub domrectreadonly: DOMRectReadOnlyTypeId,
    /// ID used by interfaces that derive from Event.
    pub event: EventTypeId,
    /// ID used by interfaces that derive from EventTarget.
    pub eventtarget: EventTargetTypeId,
    /// ID used by interfaces that derive from HTMLCollection.
    pub htmlcollection: HTMLCollectionTypeId,
    /// ID used by interfaces that derive from NodeList.
    pub nodelist: NodeListTypeId,
    /// ID used by interfaces that derive from PerformanceEntry.
    pub performanceentry: PerformanceEntryTypeId,
    /// ID used by interfaces that derive from StyleSheet.
    pub stylesheet: StyleSheetTypeId,
    /// ID used by interfaces that derive from TestBinding.
    pub testbinding: TestBindingTypeId,
    /// ID used by interfaces that derive from WebGLObject.
    pub webglobject: WebGLObjectTypeId,
    /// ID used by interfaces that derive from XRPose.
    pub xrpose: XRPoseTypeId,
    /// ID used by interfaces that derive from XRSubImage.
    pub xrsubimage: XRSubImageTypeId,
}

impl Clone for TopTypeId {
    fn clone(&self) -> Self { *self }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum AudioNodeTypeId {
    AudioNode,
    AnalyserNode,
    AudioDestinationNode,
    AudioScheduledSourceNode(AudioScheduledSourceNodeTypeId),
    BiquadFilterNode,
    ChannelMergerNode,
    ChannelSplitterNode,
    GainNode,
    MediaElementAudioSourceNode,
    MediaStreamAudioDestinationNode,
    MediaStreamAudioSourceNode,
    MediaStreamTrackAudioSourceNode,
    PannerNode
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EventTypeId {
    Event,
    AnimationEvent,
    BeforeUnloadEvent,
    BluetoothAdvertisingEvent,
    CloseEvent,
    CustomEvent,
    ErrorEvent,
    ExtendableEvent(ExtendableEventTypeId),
    FormDataEvent,
    GPUUncapturedErrorEvent,
    GamepadEvent,
    HashChangeEvent,
    MediaQueryListEvent,
    MessageEvent,
    OfflineAudioCompletionEvent,
    PageTransitionEvent,
    PopStateEvent,
    ProgressEvent,
    PromiseRejectionEvent,
    RTCDataChannelEvent,
    RTCErrorEvent,
    RTCPeerConnectionIceEvent,
    RTCTrackEvent,
    StorageEvent,
    SubmitEvent,
    TrackEvent,
    TransitionEvent,
    UIEvent(UIEventTypeId),
    WebGLContextEvent,
    XRInputSourceEvent,
    XRInputSourcesChangeEvent,
    XRLayerEvent,
    XRSessionEvent
}

impl Event {
    pub fn type_id(&self) -> &'static EventTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .event
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum NodeTypeId {
    Attr,
    CharacterData(CharacterDataTypeId),
    Document(DocumentTypeId),
    DocumentFragment(DocumentFragmentTypeId),
    DocumentType,
    Element(ElementTypeId)
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum AudioScheduledSourceNodeTypeId {
    AudioScheduledSourceNode,
    AudioBufferSourceNode,
    ConstantSourceNode,
    OscillatorNode,
    StereoPannerNode
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BaseAudioContextTypeId {
    BaseAudioContext,
    AudioContext,
    OfflineAudioContext
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EventTargetTypeId {
    EventTarget,
    AudioNode(AudioNodeTypeId),
    AudioTrackList,
    BaseAudioContext(BaseAudioContextTypeId),
    Bluetooth,
    BluetoothDevice,
    BluetoothRemoteGATTCharacteristic,
    BluetoothRemoteGATTService,
    BroadcastChannel,
    EventSource,
    FileReader,
    GPUDevice,
    GlobalScope(GlobalScopeTypeId),
    MediaDevices,
    MediaQueryList,
    MediaStream,
    MediaStreamTrack,
    MessagePort,
    Node(NodeTypeId),
    OffscreenCanvas,
    Performance,
    PermissionStatus(PermissionStatusTypeId),
    RTCDataChannel,
    RTCPeerConnection,
    ServiceWorker,
    ServiceWorkerContainer,
    ServiceWorkerRegistration,
    TextTrack,
    TextTrackCue(TextTrackCueTypeId),
    TextTrackList,
    VideoTrackList,
    WebSocket,
    Worker,
    XMLHttpRequestEventTarget(XMLHttpRequestEventTargetTypeId),
    XRLayer(XRLayerTypeId),
    XRSession,
    XRSpace(XRSpaceTypeId),
    XRSystem
}

impl EventTarget {
    pub fn type_id(&self) -> &'static EventTargetTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .eventtarget
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PermissionStatusTypeId {
    PermissionStatus,
    BluetoothPermissionResult
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TextTypeId {
    Text,
    CDATASection
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CSSGroupingRuleTypeId {
    CSSConditionRule(CSSConditionRuleTypeId)
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CSSRuleTypeId {
    CSSFontFaceRule,
    CSSGroupingRule(CSSGroupingRuleTypeId),
    CSSImportRule,
    CSSKeyframeRule,
    CSSKeyframesRule,
    CSSNamespaceRule,
    CSSStyleRule,
    CSSViewportRule
}

impl CSSRule {
    pub fn type_id(&self) -> &'static CSSRuleTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .cssrule
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CSSConditionRuleTypeId {
    CSSMediaRule,
    CSSSupportsRule
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum StyleSheetTypeId {
    StyleSheet,
    CSSStyleSheet
}

impl StyleSheet {
    pub fn type_id(&self) -> &'static StyleSheetTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .stylesheet
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CharacterDataTypeId {
    Comment,
    ProcessingInstruction,
    Text(TextTypeId)
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UIEventTypeId {
    UIEvent,
    CompositionEvent,
    FocusEvent,
    InputEvent,
    KeyboardEvent,
    MouseEvent(MouseEventTypeId),
    TouchEvent
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DOMMatrixReadOnlyTypeId {
    DOMMatrixReadOnly,
    DOMMatrix
}

impl DOMMatrixReadOnly {
    pub fn type_id(&self) -> &'static DOMMatrixReadOnlyTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .dommatrixreadonly
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DOMPointReadOnlyTypeId {
    DOMPointReadOnly,
    DOMPoint
}

impl DOMPointReadOnly {
    pub fn type_id(&self) -> &'static DOMPointReadOnlyTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .dompointreadonly
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DOMRectReadOnlyTypeId {
    DOMRectReadOnly,
    DOMRect
}

impl DOMRectReadOnly {
    pub fn type_id(&self) -> &'static DOMRectReadOnlyTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .domrectreadonly
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WorkerGlobalScopeTypeId {
    DedicatedWorkerGlobalScope,
    ServiceWorkerGlobalScope
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GlobalScopeTypeId {
    DissimilarOriginWindow,
    Window,
    WorkerGlobalScope(WorkerGlobalScopeTypeId),
    WorkletGlobalScope(WorkletGlobalScopeTypeId)
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ExtendableEventTypeId {
    ExtendableEvent,
    ExtendableMessageEvent
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BlobTypeId {
    Blob,
    File
}

impl Blob {
    pub fn type_id(&self) -> &'static BlobTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .blob
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HTMLElementTypeId {
    HTMLElement,
    HTMLAnchorElement,
    HTMLAreaElement,
    HTMLBRElement,
    HTMLBaseElement,
    HTMLBodyElement,
    HTMLButtonElement,
    HTMLCanvasElement,
    HTMLDListElement,
    HTMLDataElement,
    HTMLDataListElement,
    HTMLDetailsElement,
    HTMLDialogElement,
    HTMLDirectoryElement,
    HTMLDivElement,
    HTMLEmbedElement,
    HTMLFieldSetElement,
    HTMLFontElement,
    HTMLFormElement,
    HTMLFrameElement,
    HTMLFrameSetElement,
    HTMLHRElement,
    HTMLHeadElement,
    HTMLHeadingElement,
    HTMLHtmlElement,
    HTMLIFrameElement,
    HTMLImageElement,
    HTMLInputElement,
    HTMLLIElement,
    HTMLLabelElement,
    HTMLLegendElement,
    HTMLLinkElement,
    HTMLMapElement,
    HTMLMediaElement(HTMLMediaElementTypeId),
    HTMLMenuElement,
    HTMLMetaElement,
    HTMLMeterElement,
    HTMLModElement,
    HTMLOListElement,
    HTMLObjectElement,
    HTMLOptGroupElement,
    HTMLOptionElement,
    HTMLOutputElement,
    HTMLParagraphElement,
    HTMLParamElement,
    HTMLPictureElement,
    HTMLPreElement,
    HTMLProgressElement,
    HTMLQuoteElement,
    HTMLScriptElement,
    HTMLSelectElement,
    HTMLSourceElement,
    HTMLSpanElement,
    HTMLStyleElement,
    HTMLTableCaptionElement,
    HTMLTableCellElement,
    HTMLTableColElement,
    HTMLTableElement,
    HTMLTableRowElement,
    HTMLTableSectionElement,
    HTMLTemplateElement,
    HTMLTextAreaElement,
    HTMLTimeElement,
    HTMLTitleElement,
    HTMLTrackElement,
    HTMLUListElement,
    HTMLUnknownElement
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HTMLMediaElementTypeId {
    HTMLAudioElement,
    HTMLVideoElement
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ElementTypeId {
    Element,
    HTMLElement(HTMLElementTypeId),
    SVGElement(SVGElementTypeId)
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HTMLCollectionTypeId {
    HTMLCollection,
    HTMLFormControlsCollection,
    HTMLOptionsCollection
}

impl HTMLCollection {
    pub fn type_id(&self) -> &'static HTMLCollectionTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .htmlcollection
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WorkletGlobalScopeTypeId {
    WorkletGlobalScope,
    PaintWorkletGlobalScope,
    TestWorkletGlobalScope
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PerformanceEntryTypeId {
    PerformanceEntry,
    PerformanceMark,
    PerformanceMeasure,
    PerformancePaintTiming,
    PerformanceResourceTiming(PerformanceResourceTimingTypeId)
}

impl PerformanceEntry {
    pub fn type_id(&self) -> &'static PerformanceEntryTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .performanceentry
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PerformanceResourceTimingTypeId {
    PerformanceResourceTiming,
    PerformanceNavigationTiming
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DOMExceptionTypeId {
    DOMException,
    RTCError
}

impl DOMException {
    pub fn type_id(&self) -> &'static DOMExceptionTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .domexception
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum NodeListTypeId {
    NodeList,
    RadioNodeList
}

impl NodeList {
    pub fn type_id(&self) -> &'static NodeListTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .nodelist
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SVGElementTypeId {
    SVGElement,
    SVGGraphicsElement(SVGGraphicsElementTypeId)
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SVGGraphicsElementTypeId {
    SVGSVGElement
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DocumentFragmentTypeId {
    DocumentFragment,
    ShadowRoot
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TestBindingTypeId {
    TestBinding,
    TestBindingProxy
}

impl TestBinding {
    pub fn type_id(&self) -> &'static TestBindingTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .testbinding
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TextTrackCueTypeId {
    TextTrackCue,
    VTTCue
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WebGLObjectTypeId {
    WebGLBuffer,
    WebGLFramebuffer,
    WebGLProgram,
    WebGLQuery,
    WebGLRenderbuffer,
    WebGLSampler,
    WebGLShader,
    WebGLSync,
    WebGLTexture,
    WebGLTransformFeedback,
    WebGLVertexArrayObject,
    WebGLVertexArrayObjectOES
}

impl WebGLObject {
    pub fn type_id(&self) -> &'static WebGLObjectTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .webglobject
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MouseEventTypeId {
    MouseEvent,
    WheelEvent
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DocumentTypeId {
    Document,
    XMLDocument
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum XMLHttpRequestEventTargetTypeId {
    XMLHttpRequest,
    XMLHttpRequestUpload
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum XRLayerTypeId {
    XRLayer,
    XRCompositionLayer(XRCompositionLayerTypeId),
    XRWebGLLayer
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum XRCompositionLayerTypeId {
    XRCompositionLayer,
    XRCubeLayer,
    XRCylinderLayer,
    XREquirectLayer,
    XRProjectionLayer,
    XRQuadLayer
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum XRPoseTypeId {
    XRPose,
    XRJointPose,
    XRViewerPose
}

impl XRPose {
    pub fn type_id(&self) -> &'static XRPoseTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .xrpose
        }
    }
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum XRSpaceTypeId {
    XRSpace,
    XRJointSpace,
    XRReferenceSpace
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum XRSubImageTypeId {
    XRSubImage,
    XRWebGLSubImage
}

impl XRSubImage {
    pub fn type_id(&self) -> &'static XRSubImageTypeId {
        unsafe {
            &get_dom_class(self.reflector().get_jsobject().get())
                .unwrap()
                .type_id
                .xrsubimage
        }
    }
}

impl Castable for AnalyserNode {}
impl DerivedFrom<EventTarget> for AnalyserNode {}
impl DerivedFrom<AudioNode> for AnalyserNode {}

impl Castable for AnimationEvent {}
impl DerivedFrom<Event> for AnimationEvent {}

impl Castable for Attr {}
impl DerivedFrom<EventTarget> for Attr {}
impl DerivedFrom<Node> for Attr {}

impl Castable for AudioBufferSourceNode {}
impl DerivedFrom<EventTarget> for AudioBufferSourceNode {}
impl DerivedFrom<AudioNode> for AudioBufferSourceNode {}
impl DerivedFrom<AudioScheduledSourceNode> for AudioBufferSourceNode {}

impl Castable for AudioContext {}
impl DerivedFrom<EventTarget> for AudioContext {}
impl DerivedFrom<BaseAudioContext> for AudioContext {}

impl Castable for AudioDestinationNode {}
impl DerivedFrom<EventTarget> for AudioDestinationNode {}
impl DerivedFrom<AudioNode> for AudioDestinationNode {}

impl Castable for AudioNode {}
impl DerivedFrom<EventTarget> for AudioNode {}
impl DerivedFrom<AudioNode> for AudioNode {}

impl Castable for AudioScheduledSourceNode {}
impl DerivedFrom<EventTarget> for AudioScheduledSourceNode {}
impl DerivedFrom<AudioNode> for AudioScheduledSourceNode {}
impl DerivedFrom<AudioScheduledSourceNode> for AudioScheduledSourceNode {}

impl Castable for AudioTrackList {}
impl DerivedFrom<EventTarget> for AudioTrackList {}

impl Castable for BaseAudioContext {}
impl DerivedFrom<EventTarget> for BaseAudioContext {}
impl DerivedFrom<BaseAudioContext> for BaseAudioContext {}

impl Castable for BeforeUnloadEvent {}
impl DerivedFrom<Event> for BeforeUnloadEvent {}

impl Castable for BiquadFilterNode {}
impl DerivedFrom<EventTarget> for BiquadFilterNode {}
impl DerivedFrom<AudioNode> for BiquadFilterNode {}

impl Castable for Blob {}
impl DerivedFrom<Blob> for Blob {}

impl Castable for Bluetooth {}
impl DerivedFrom<EventTarget> for Bluetooth {}

impl Castable for BluetoothAdvertisingEvent {}
impl DerivedFrom<Event> for BluetoothAdvertisingEvent {}

impl Castable for BluetoothDevice {}
impl DerivedFrom<EventTarget> for BluetoothDevice {}

impl Castable for BluetoothPermissionResult {}
impl DerivedFrom<EventTarget> for BluetoothPermissionResult {}
impl DerivedFrom<PermissionStatus> for BluetoothPermissionResult {}

impl Castable for BluetoothRemoteGATTCharacteristic {}
impl DerivedFrom<EventTarget> for BluetoothRemoteGATTCharacteristic {}

impl Castable for BluetoothRemoteGATTService {}
impl DerivedFrom<EventTarget> for BluetoothRemoteGATTService {}

impl Castable for BroadcastChannel {}
impl DerivedFrom<EventTarget> for BroadcastChannel {}

impl Castable for CDATASection {}
impl DerivedFrom<EventTarget> for CDATASection {}
impl DerivedFrom<Node> for CDATASection {}
impl DerivedFrom<CharacterData> for CDATASection {}
impl DerivedFrom<Text> for CDATASection {}

impl Castable for CSSConditionRule {}
impl DerivedFrom<CSSRule> for CSSConditionRule {}
impl DerivedFrom<CSSGroupingRule> for CSSConditionRule {}
impl DerivedFrom<CSSConditionRule> for CSSConditionRule {}

impl Castable for CSSFontFaceRule {}
impl DerivedFrom<CSSRule> for CSSFontFaceRule {}

impl Castable for CSSGroupingRule {}
impl DerivedFrom<CSSRule> for CSSGroupingRule {}
impl DerivedFrom<CSSGroupingRule> for CSSGroupingRule {}

impl Castable for CSSImportRule {}
impl DerivedFrom<CSSRule> for CSSImportRule {}

impl Castable for CSSKeyframeRule {}
impl DerivedFrom<CSSRule> for CSSKeyframeRule {}

impl Castable for CSSKeyframesRule {}
impl DerivedFrom<CSSRule> for CSSKeyframesRule {}

impl Castable for CSSMediaRule {}
impl DerivedFrom<CSSRule> for CSSMediaRule {}
impl DerivedFrom<CSSGroupingRule> for CSSMediaRule {}
impl DerivedFrom<CSSConditionRule> for CSSMediaRule {}

impl Castable for CSSNamespaceRule {}
impl DerivedFrom<CSSRule> for CSSNamespaceRule {}

impl Castable for CSSRule {}
impl DerivedFrom<CSSRule> for CSSRule {}

impl Castable for CSSStyleRule {}
impl DerivedFrom<CSSRule> for CSSStyleRule {}

impl Castable for CSSStyleSheet {}
impl DerivedFrom<StyleSheet> for CSSStyleSheet {}

impl Castable for CSSSupportsRule {}
impl DerivedFrom<CSSRule> for CSSSupportsRule {}
impl DerivedFrom<CSSGroupingRule> for CSSSupportsRule {}
impl DerivedFrom<CSSConditionRule> for CSSSupportsRule {}

impl Castable for CSSViewportRule {}
impl DerivedFrom<CSSRule> for CSSViewportRule {}

impl Castable for ChannelMergerNode {}
impl DerivedFrom<EventTarget> for ChannelMergerNode {}
impl DerivedFrom<AudioNode> for ChannelMergerNode {}

impl Castable for ChannelSplitterNode {}
impl DerivedFrom<EventTarget> for ChannelSplitterNode {}
impl DerivedFrom<AudioNode> for ChannelSplitterNode {}

impl Castable for CharacterData {}
impl DerivedFrom<EventTarget> for CharacterData {}
impl DerivedFrom<Node> for CharacterData {}
impl DerivedFrom<CharacterData> for CharacterData {}

impl Castable for CloseEvent {}
impl DerivedFrom<Event> for CloseEvent {}

impl Castable for Comment {}
impl DerivedFrom<EventTarget> for Comment {}
impl DerivedFrom<Node> for Comment {}
impl DerivedFrom<CharacterData> for Comment {}

impl Castable for CompositionEvent {}
impl DerivedFrom<Event> for CompositionEvent {}
impl DerivedFrom<UIEvent> for CompositionEvent {}

impl Castable for ConstantSourceNode {}
impl DerivedFrom<EventTarget> for ConstantSourceNode {}
impl DerivedFrom<AudioNode> for ConstantSourceNode {}
impl DerivedFrom<AudioScheduledSourceNode> for ConstantSourceNode {}

impl Castable for CustomEvent {}
impl DerivedFrom<Event> for CustomEvent {}

impl Castable for DOMException {}
impl DerivedFrom<DOMException> for DOMException {}

impl Castable for DOMMatrix {}
impl DerivedFrom<DOMMatrixReadOnly> for DOMMatrix {}

impl Castable for DOMMatrixReadOnly {}
impl DerivedFrom<DOMMatrixReadOnly> for DOMMatrixReadOnly {}

impl Castable for DOMPoint {}
impl DerivedFrom<DOMPointReadOnly> for DOMPoint {}

impl Castable for DOMPointReadOnly {}
impl DerivedFrom<DOMPointReadOnly> for DOMPointReadOnly {}

impl Castable for DOMRect {}
impl DerivedFrom<DOMRectReadOnly> for DOMRect {}

impl Castable for DOMRectReadOnly {}
impl DerivedFrom<DOMRectReadOnly> for DOMRectReadOnly {}

impl Castable for DedicatedWorkerGlobalScope {}
impl DerivedFrom<EventTarget> for DedicatedWorkerGlobalScope {}
impl DerivedFrom<GlobalScope> for DedicatedWorkerGlobalScope {}
impl DerivedFrom<WorkerGlobalScope> for DedicatedWorkerGlobalScope {}

impl Castable for DissimilarOriginWindow {}
impl DerivedFrom<EventTarget> for DissimilarOriginWindow {}
impl DerivedFrom<GlobalScope> for DissimilarOriginWindow {}

impl Castable for Document {}
impl DerivedFrom<EventTarget> for Document {}
impl DerivedFrom<Node> for Document {}
impl DerivedFrom<Document> for Document {}

impl Castable for DocumentFragment {}
impl DerivedFrom<EventTarget> for DocumentFragment {}
impl DerivedFrom<Node> for DocumentFragment {}
impl DerivedFrom<DocumentFragment> for DocumentFragment {}

impl Castable for DocumentType {}
impl DerivedFrom<EventTarget> for DocumentType {}
impl DerivedFrom<Node> for DocumentType {}

impl Castable for Element {}
impl DerivedFrom<EventTarget> for Element {}
impl DerivedFrom<Node> for Element {}
impl DerivedFrom<Element> for Element {}

impl Castable for ErrorEvent {}
impl DerivedFrom<Event> for ErrorEvent {}

impl Castable for Event {}
impl DerivedFrom<Event> for Event {}

impl Castable for EventSource {}
impl DerivedFrom<EventTarget> for EventSource {}

impl Castable for EventTarget {}
impl DerivedFrom<EventTarget> for EventTarget {}

impl Castable for ExtendableEvent {}
impl DerivedFrom<Event> for ExtendableEvent {}
impl DerivedFrom<ExtendableEvent> for ExtendableEvent {}

impl Castable for ExtendableMessageEvent {}
impl DerivedFrom<Event> for ExtendableMessageEvent {}
impl DerivedFrom<ExtendableEvent> for ExtendableMessageEvent {}

impl Castable for File {}
impl DerivedFrom<Blob> for File {}

impl Castable for FileReader {}
impl DerivedFrom<EventTarget> for FileReader {}

impl Castable for FocusEvent {}
impl DerivedFrom<Event> for FocusEvent {}
impl DerivedFrom<UIEvent> for FocusEvent {}

impl Castable for FormDataEvent {}
impl DerivedFrom<Event> for FormDataEvent {}

impl Castable for GPUDevice {}
impl DerivedFrom<EventTarget> for GPUDevice {}

impl Castable for GPUUncapturedErrorEvent {}
impl DerivedFrom<Event> for GPUUncapturedErrorEvent {}

impl Castable for GainNode {}
impl DerivedFrom<EventTarget> for GainNode {}
impl DerivedFrom<AudioNode> for GainNode {}

impl Castable for GamepadEvent {}
impl DerivedFrom<Event> for GamepadEvent {}

impl Castable for GlobalScope {}
impl DerivedFrom<EventTarget> for GlobalScope {}
impl DerivedFrom<GlobalScope> for GlobalScope {}

impl Castable for HTMLAnchorElement {}
impl DerivedFrom<EventTarget> for HTMLAnchorElement {}
impl DerivedFrom<Node> for HTMLAnchorElement {}
impl DerivedFrom<Element> for HTMLAnchorElement {}
impl DerivedFrom<HTMLElement> for HTMLAnchorElement {}

impl Castable for HTMLAreaElement {}
impl DerivedFrom<EventTarget> for HTMLAreaElement {}
impl DerivedFrom<Node> for HTMLAreaElement {}
impl DerivedFrom<Element> for HTMLAreaElement {}
impl DerivedFrom<HTMLElement> for HTMLAreaElement {}

impl Castable for HTMLAudioElement {}
impl DerivedFrom<EventTarget> for HTMLAudioElement {}
impl DerivedFrom<Node> for HTMLAudioElement {}
impl DerivedFrom<Element> for HTMLAudioElement {}
impl DerivedFrom<HTMLElement> for HTMLAudioElement {}
impl DerivedFrom<HTMLMediaElement> for HTMLAudioElement {}

impl Castable for HTMLBRElement {}
impl DerivedFrom<EventTarget> for HTMLBRElement {}
impl DerivedFrom<Node> for HTMLBRElement {}
impl DerivedFrom<Element> for HTMLBRElement {}
impl DerivedFrom<HTMLElement> for HTMLBRElement {}

impl Castable for HTMLBaseElement {}
impl DerivedFrom<EventTarget> for HTMLBaseElement {}
impl DerivedFrom<Node> for HTMLBaseElement {}
impl DerivedFrom<Element> for HTMLBaseElement {}
impl DerivedFrom<HTMLElement> for HTMLBaseElement {}

impl Castable for HTMLBodyElement {}
impl DerivedFrom<EventTarget> for HTMLBodyElement {}
impl DerivedFrom<Node> for HTMLBodyElement {}
impl DerivedFrom<Element> for HTMLBodyElement {}
impl DerivedFrom<HTMLElement> for HTMLBodyElement {}

impl Castable for HTMLButtonElement {}
impl DerivedFrom<EventTarget> for HTMLButtonElement {}
impl DerivedFrom<Node> for HTMLButtonElement {}
impl DerivedFrom<Element> for HTMLButtonElement {}
impl DerivedFrom<HTMLElement> for HTMLButtonElement {}

impl Castable for HTMLCanvasElement {}
impl DerivedFrom<EventTarget> for HTMLCanvasElement {}
impl DerivedFrom<Node> for HTMLCanvasElement {}
impl DerivedFrom<Element> for HTMLCanvasElement {}
impl DerivedFrom<HTMLElement> for HTMLCanvasElement {}

impl Castable for HTMLCollection {}
impl DerivedFrom<HTMLCollection> for HTMLCollection {}

impl Castable for HTMLDListElement {}
impl DerivedFrom<EventTarget> for HTMLDListElement {}
impl DerivedFrom<Node> for HTMLDListElement {}
impl DerivedFrom<Element> for HTMLDListElement {}
impl DerivedFrom<HTMLElement> for HTMLDListElement {}

impl Castable for HTMLDataElement {}
impl DerivedFrom<EventTarget> for HTMLDataElement {}
impl DerivedFrom<Node> for HTMLDataElement {}
impl DerivedFrom<Element> for HTMLDataElement {}
impl DerivedFrom<HTMLElement> for HTMLDataElement {}

impl Castable for HTMLDataListElement {}
impl DerivedFrom<EventTarget> for HTMLDataListElement {}
impl DerivedFrom<Node> for HTMLDataListElement {}
impl DerivedFrom<Element> for HTMLDataListElement {}
impl DerivedFrom<HTMLElement> for HTMLDataListElement {}

impl Castable for HTMLDetailsElement {}
impl DerivedFrom<EventTarget> for HTMLDetailsElement {}
impl DerivedFrom<Node> for HTMLDetailsElement {}
impl DerivedFrom<Element> for HTMLDetailsElement {}
impl DerivedFrom<HTMLElement> for HTMLDetailsElement {}

impl Castable for HTMLDialogElement {}
impl DerivedFrom<EventTarget> for HTMLDialogElement {}
impl DerivedFrom<Node> for HTMLDialogElement {}
impl DerivedFrom<Element> for HTMLDialogElement {}
impl DerivedFrom<HTMLElement> for HTMLDialogElement {}

impl Castable for HTMLDirectoryElement {}
impl DerivedFrom<EventTarget> for HTMLDirectoryElement {}
impl DerivedFrom<Node> for HTMLDirectoryElement {}
impl DerivedFrom<Element> for HTMLDirectoryElement {}
impl DerivedFrom<HTMLElement> for HTMLDirectoryElement {}

impl Castable for HTMLDivElement {}
impl DerivedFrom<EventTarget> for HTMLDivElement {}
impl DerivedFrom<Node> for HTMLDivElement {}
impl DerivedFrom<Element> for HTMLDivElement {}
impl DerivedFrom<HTMLElement> for HTMLDivElement {}

impl Castable for HTMLElement {}
impl DerivedFrom<EventTarget> for HTMLElement {}
impl DerivedFrom<Node> for HTMLElement {}
impl DerivedFrom<Element> for HTMLElement {}
impl DerivedFrom<HTMLElement> for HTMLElement {}

impl Castable for HTMLEmbedElement {}
impl DerivedFrom<EventTarget> for HTMLEmbedElement {}
impl DerivedFrom<Node> for HTMLEmbedElement {}
impl DerivedFrom<Element> for HTMLEmbedElement {}
impl DerivedFrom<HTMLElement> for HTMLEmbedElement {}

impl Castable for HTMLFieldSetElement {}
impl DerivedFrom<EventTarget> for HTMLFieldSetElement {}
impl DerivedFrom<Node> for HTMLFieldSetElement {}
impl DerivedFrom<Element> for HTMLFieldSetElement {}
impl DerivedFrom<HTMLElement> for HTMLFieldSetElement {}

impl Castable for HTMLFontElement {}
impl DerivedFrom<EventTarget> for HTMLFontElement {}
impl DerivedFrom<Node> for HTMLFontElement {}
impl DerivedFrom<Element> for HTMLFontElement {}
impl DerivedFrom<HTMLElement> for HTMLFontElement {}

impl Castable for HTMLFormControlsCollection {}
impl DerivedFrom<HTMLCollection> for HTMLFormControlsCollection {}

impl Castable for HTMLFormElement {}
impl DerivedFrom<EventTarget> for HTMLFormElement {}
impl DerivedFrom<Node> for HTMLFormElement {}
impl DerivedFrom<Element> for HTMLFormElement {}
impl DerivedFrom<HTMLElement> for HTMLFormElement {}

impl Castable for HTMLFrameElement {}
impl DerivedFrom<EventTarget> for HTMLFrameElement {}
impl DerivedFrom<Node> for HTMLFrameElement {}
impl DerivedFrom<Element> for HTMLFrameElement {}
impl DerivedFrom<HTMLElement> for HTMLFrameElement {}

impl Castable for HTMLFrameSetElement {}
impl DerivedFrom<EventTarget> for HTMLFrameSetElement {}
impl DerivedFrom<Node> for HTMLFrameSetElement {}
impl DerivedFrom<Element> for HTMLFrameSetElement {}
impl DerivedFrom<HTMLElement> for HTMLFrameSetElement {}

impl Castable for HTMLHRElement {}
impl DerivedFrom<EventTarget> for HTMLHRElement {}
impl DerivedFrom<Node> for HTMLHRElement {}
impl DerivedFrom<Element> for HTMLHRElement {}
impl DerivedFrom<HTMLElement> for HTMLHRElement {}

impl Castable for HTMLHeadElement {}
impl DerivedFrom<EventTarget> for HTMLHeadElement {}
impl DerivedFrom<Node> for HTMLHeadElement {}
impl DerivedFrom<Element> for HTMLHeadElement {}
impl DerivedFrom<HTMLElement> for HTMLHeadElement {}

impl Castable for HTMLHeadingElement {}
impl DerivedFrom<EventTarget> for HTMLHeadingElement {}
impl DerivedFrom<Node> for HTMLHeadingElement {}
impl DerivedFrom<Element> for HTMLHeadingElement {}
impl DerivedFrom<HTMLElement> for HTMLHeadingElement {}

impl Castable for HTMLHtmlElement {}
impl DerivedFrom<EventTarget> for HTMLHtmlElement {}
impl DerivedFrom<Node> for HTMLHtmlElement {}
impl DerivedFrom<Element> for HTMLHtmlElement {}
impl DerivedFrom<HTMLElement> for HTMLHtmlElement {}

impl Castable for HTMLIFrameElement {}
impl DerivedFrom<EventTarget> for HTMLIFrameElement {}
impl DerivedFrom<Node> for HTMLIFrameElement {}
impl DerivedFrom<Element> for HTMLIFrameElement {}
impl DerivedFrom<HTMLElement> for HTMLIFrameElement {}

impl Castable for HTMLImageElement {}
impl DerivedFrom<EventTarget> for HTMLImageElement {}
impl DerivedFrom<Node> for HTMLImageElement {}
impl DerivedFrom<Element> for HTMLImageElement {}
impl DerivedFrom<HTMLElement> for HTMLImageElement {}

impl Castable for HTMLInputElement {}
impl DerivedFrom<EventTarget> for HTMLInputElement {}
impl DerivedFrom<Node> for HTMLInputElement {}
impl DerivedFrom<Element> for HTMLInputElement {}
impl DerivedFrom<HTMLElement> for HTMLInputElement {}

impl Castable for HTMLLIElement {}
impl DerivedFrom<EventTarget> for HTMLLIElement {}
impl DerivedFrom<Node> for HTMLLIElement {}
impl DerivedFrom<Element> for HTMLLIElement {}
impl DerivedFrom<HTMLElement> for HTMLLIElement {}

impl Castable for HTMLLabelElement {}
impl DerivedFrom<EventTarget> for HTMLLabelElement {}
impl DerivedFrom<Node> for HTMLLabelElement {}
impl DerivedFrom<Element> for HTMLLabelElement {}
impl DerivedFrom<HTMLElement> for HTMLLabelElement {}

impl Castable for HTMLLegendElement {}
impl DerivedFrom<EventTarget> for HTMLLegendElement {}
impl DerivedFrom<Node> for HTMLLegendElement {}
impl DerivedFrom<Element> for HTMLLegendElement {}
impl DerivedFrom<HTMLElement> for HTMLLegendElement {}

impl Castable for HTMLLinkElement {}
impl DerivedFrom<EventTarget> for HTMLLinkElement {}
impl DerivedFrom<Node> for HTMLLinkElement {}
impl DerivedFrom<Element> for HTMLLinkElement {}
impl DerivedFrom<HTMLElement> for HTMLLinkElement {}

impl Castable for HTMLMapElement {}
impl DerivedFrom<EventTarget> for HTMLMapElement {}
impl DerivedFrom<Node> for HTMLMapElement {}
impl DerivedFrom<Element> for HTMLMapElement {}
impl DerivedFrom<HTMLElement> for HTMLMapElement {}

impl Castable for HTMLMediaElement {}
impl DerivedFrom<EventTarget> for HTMLMediaElement {}
impl DerivedFrom<Node> for HTMLMediaElement {}
impl DerivedFrom<Element> for HTMLMediaElement {}
impl DerivedFrom<HTMLElement> for HTMLMediaElement {}
impl DerivedFrom<HTMLMediaElement> for HTMLMediaElement {}

impl Castable for HTMLMenuElement {}
impl DerivedFrom<EventTarget> for HTMLMenuElement {}
impl DerivedFrom<Node> for HTMLMenuElement {}
impl DerivedFrom<Element> for HTMLMenuElement {}
impl DerivedFrom<HTMLElement> for HTMLMenuElement {}

impl Castable for HTMLMetaElement {}
impl DerivedFrom<EventTarget> for HTMLMetaElement {}
impl DerivedFrom<Node> for HTMLMetaElement {}
impl DerivedFrom<Element> for HTMLMetaElement {}
impl DerivedFrom<HTMLElement> for HTMLMetaElement {}

impl Castable for HTMLMeterElement {}
impl DerivedFrom<EventTarget> for HTMLMeterElement {}
impl DerivedFrom<Node> for HTMLMeterElement {}
impl DerivedFrom<Element> for HTMLMeterElement {}
impl DerivedFrom<HTMLElement> for HTMLMeterElement {}

impl Castable for HTMLModElement {}
impl DerivedFrom<EventTarget> for HTMLModElement {}
impl DerivedFrom<Node> for HTMLModElement {}
impl DerivedFrom<Element> for HTMLModElement {}
impl DerivedFrom<HTMLElement> for HTMLModElement {}

impl Castable for HTMLOListElement {}
impl DerivedFrom<EventTarget> for HTMLOListElement {}
impl DerivedFrom<Node> for HTMLOListElement {}
impl DerivedFrom<Element> for HTMLOListElement {}
impl DerivedFrom<HTMLElement> for HTMLOListElement {}

impl Castable for HTMLObjectElement {}
impl DerivedFrom<EventTarget> for HTMLObjectElement {}
impl DerivedFrom<Node> for HTMLObjectElement {}
impl DerivedFrom<Element> for HTMLObjectElement {}
impl DerivedFrom<HTMLElement> for HTMLObjectElement {}

impl Castable for HTMLOptGroupElement {}
impl DerivedFrom<EventTarget> for HTMLOptGroupElement {}
impl DerivedFrom<Node> for HTMLOptGroupElement {}
impl DerivedFrom<Element> for HTMLOptGroupElement {}
impl DerivedFrom<HTMLElement> for HTMLOptGroupElement {}

impl Castable for HTMLOptionElement {}
impl DerivedFrom<EventTarget> for HTMLOptionElement {}
impl DerivedFrom<Node> for HTMLOptionElement {}
impl DerivedFrom<Element> for HTMLOptionElement {}
impl DerivedFrom<HTMLElement> for HTMLOptionElement {}

impl Castable for HTMLOptionsCollection {}
impl DerivedFrom<HTMLCollection> for HTMLOptionsCollection {}

impl Castable for HTMLOutputElement {}
impl DerivedFrom<EventTarget> for HTMLOutputElement {}
impl DerivedFrom<Node> for HTMLOutputElement {}
impl DerivedFrom<Element> for HTMLOutputElement {}
impl DerivedFrom<HTMLElement> for HTMLOutputElement {}

impl Castable for HTMLParagraphElement {}
impl DerivedFrom<EventTarget> for HTMLParagraphElement {}
impl DerivedFrom<Node> for HTMLParagraphElement {}
impl DerivedFrom<Element> for HTMLParagraphElement {}
impl DerivedFrom<HTMLElement> for HTMLParagraphElement {}

impl Castable for HTMLParamElement {}
impl DerivedFrom<EventTarget> for HTMLParamElement {}
impl DerivedFrom<Node> for HTMLParamElement {}
impl DerivedFrom<Element> for HTMLParamElement {}
impl DerivedFrom<HTMLElement> for HTMLParamElement {}

impl Castable for HTMLPictureElement {}
impl DerivedFrom<EventTarget> for HTMLPictureElement {}
impl DerivedFrom<Node> for HTMLPictureElement {}
impl DerivedFrom<Element> for HTMLPictureElement {}
impl DerivedFrom<HTMLElement> for HTMLPictureElement {}

impl Castable for HTMLPreElement {}
impl DerivedFrom<EventTarget> for HTMLPreElement {}
impl DerivedFrom<Node> for HTMLPreElement {}
impl DerivedFrom<Element> for HTMLPreElement {}
impl DerivedFrom<HTMLElement> for HTMLPreElement {}

impl Castable for HTMLProgressElement {}
impl DerivedFrom<EventTarget> for HTMLProgressElement {}
impl DerivedFrom<Node> for HTMLProgressElement {}
impl DerivedFrom<Element> for HTMLProgressElement {}
impl DerivedFrom<HTMLElement> for HTMLProgressElement {}

impl Castable for HTMLQuoteElement {}
impl DerivedFrom<EventTarget> for HTMLQuoteElement {}
impl DerivedFrom<Node> for HTMLQuoteElement {}
impl DerivedFrom<Element> for HTMLQuoteElement {}
impl DerivedFrom<HTMLElement> for HTMLQuoteElement {}

impl Castable for HTMLScriptElement {}
impl DerivedFrom<EventTarget> for HTMLScriptElement {}
impl DerivedFrom<Node> for HTMLScriptElement {}
impl DerivedFrom<Element> for HTMLScriptElement {}
impl DerivedFrom<HTMLElement> for HTMLScriptElement {}

impl Castable for HTMLSelectElement {}
impl DerivedFrom<EventTarget> for HTMLSelectElement {}
impl DerivedFrom<Node> for HTMLSelectElement {}
impl DerivedFrom<Element> for HTMLSelectElement {}
impl DerivedFrom<HTMLElement> for HTMLSelectElement {}

impl Castable for HTMLSourceElement {}
impl DerivedFrom<EventTarget> for HTMLSourceElement {}
impl DerivedFrom<Node> for HTMLSourceElement {}
impl DerivedFrom<Element> for HTMLSourceElement {}
impl DerivedFrom<HTMLElement> for HTMLSourceElement {}

impl Castable for HTMLSpanElement {}
impl DerivedFrom<EventTarget> for HTMLSpanElement {}
impl DerivedFrom<Node> for HTMLSpanElement {}
impl DerivedFrom<Element> for HTMLSpanElement {}
impl DerivedFrom<HTMLElement> for HTMLSpanElement {}

impl Castable for HTMLStyleElement {}
impl DerivedFrom<EventTarget> for HTMLStyleElement {}
impl DerivedFrom<Node> for HTMLStyleElement {}
impl DerivedFrom<Element> for HTMLStyleElement {}
impl DerivedFrom<HTMLElement> for HTMLStyleElement {}

impl Castable for HTMLTableCaptionElement {}
impl DerivedFrom<EventTarget> for HTMLTableCaptionElement {}
impl DerivedFrom<Node> for HTMLTableCaptionElement {}
impl DerivedFrom<Element> for HTMLTableCaptionElement {}
impl DerivedFrom<HTMLElement> for HTMLTableCaptionElement {}

impl Castable for HTMLTableCellElement {}
impl DerivedFrom<EventTarget> for HTMLTableCellElement {}
impl DerivedFrom<Node> for HTMLTableCellElement {}
impl DerivedFrom<Element> for HTMLTableCellElement {}
impl DerivedFrom<HTMLElement> for HTMLTableCellElement {}

impl Castable for HTMLTableColElement {}
impl DerivedFrom<EventTarget> for HTMLTableColElement {}
impl DerivedFrom<Node> for HTMLTableColElement {}
impl DerivedFrom<Element> for HTMLTableColElement {}
impl DerivedFrom<HTMLElement> for HTMLTableColElement {}

impl Castable for HTMLTableElement {}
impl DerivedFrom<EventTarget> for HTMLTableElement {}
impl DerivedFrom<Node> for HTMLTableElement {}
impl DerivedFrom<Element> for HTMLTableElement {}
impl DerivedFrom<HTMLElement> for HTMLTableElement {}

impl Castable for HTMLTableRowElement {}
impl DerivedFrom<EventTarget> for HTMLTableRowElement {}
impl DerivedFrom<Node> for HTMLTableRowElement {}
impl DerivedFrom<Element> for HTMLTableRowElement {}
impl DerivedFrom<HTMLElement> for HTMLTableRowElement {}

impl Castable for HTMLTableSectionElement {}
impl DerivedFrom<EventTarget> for HTMLTableSectionElement {}
impl DerivedFrom<Node> for HTMLTableSectionElement {}
impl DerivedFrom<Element> for HTMLTableSectionElement {}
impl DerivedFrom<HTMLElement> for HTMLTableSectionElement {}

impl Castable for HTMLTemplateElement {}
impl DerivedFrom<EventTarget> for HTMLTemplateElement {}
impl DerivedFrom<Node> for HTMLTemplateElement {}
impl DerivedFrom<Element> for HTMLTemplateElement {}
impl DerivedFrom<HTMLElement> for HTMLTemplateElement {}

impl Castable for HTMLTextAreaElement {}
impl DerivedFrom<EventTarget> for HTMLTextAreaElement {}
impl DerivedFrom<Node> for HTMLTextAreaElement {}
impl DerivedFrom<Element> for HTMLTextAreaElement {}
impl DerivedFrom<HTMLElement> for HTMLTextAreaElement {}

impl Castable for HTMLTimeElement {}
impl DerivedFrom<EventTarget> for HTMLTimeElement {}
impl DerivedFrom<Node> for HTMLTimeElement {}
impl DerivedFrom<Element> for HTMLTimeElement {}
impl DerivedFrom<HTMLElement> for HTMLTimeElement {}

impl Castable for HTMLTitleElement {}
impl DerivedFrom<EventTarget> for HTMLTitleElement {}
impl DerivedFrom<Node> for HTMLTitleElement {}
impl DerivedFrom<Element> for HTMLTitleElement {}
impl DerivedFrom<HTMLElement> for HTMLTitleElement {}

impl Castable for HTMLTrackElement {}
impl DerivedFrom<EventTarget> for HTMLTrackElement {}
impl DerivedFrom<Node> for HTMLTrackElement {}
impl DerivedFrom<Element> for HTMLTrackElement {}
impl DerivedFrom<HTMLElement> for HTMLTrackElement {}

impl Castable for HTMLUListElement {}
impl DerivedFrom<EventTarget> for HTMLUListElement {}
impl DerivedFrom<Node> for HTMLUListElement {}
impl DerivedFrom<Element> for HTMLUListElement {}
impl DerivedFrom<HTMLElement> for HTMLUListElement {}

impl Castable for HTMLUnknownElement {}
impl DerivedFrom<EventTarget> for HTMLUnknownElement {}
impl DerivedFrom<Node> for HTMLUnknownElement {}
impl DerivedFrom<Element> for HTMLUnknownElement {}
impl DerivedFrom<HTMLElement> for HTMLUnknownElement {}

impl Castable for HTMLVideoElement {}
impl DerivedFrom<EventTarget> for HTMLVideoElement {}
impl DerivedFrom<Node> for HTMLVideoElement {}
impl DerivedFrom<Element> for HTMLVideoElement {}
impl DerivedFrom<HTMLElement> for HTMLVideoElement {}
impl DerivedFrom<HTMLMediaElement> for HTMLVideoElement {}

impl Castable for HashChangeEvent {}
impl DerivedFrom<Event> for HashChangeEvent {}

impl Castable for InputEvent {}
impl DerivedFrom<Event> for InputEvent {}
impl DerivedFrom<UIEvent> for InputEvent {}

impl Castable for KeyboardEvent {}
impl DerivedFrom<Event> for KeyboardEvent {}
impl DerivedFrom<UIEvent> for KeyboardEvent {}

impl Castable for MediaDevices {}
impl DerivedFrom<EventTarget> for MediaDevices {}

impl Castable for MediaElementAudioSourceNode {}
impl DerivedFrom<EventTarget> for MediaElementAudioSourceNode {}
impl DerivedFrom<AudioNode> for MediaElementAudioSourceNode {}

impl Castable for MediaQueryList {}
impl DerivedFrom<EventTarget> for MediaQueryList {}

impl Castable for MediaQueryListEvent {}
impl DerivedFrom<Event> for MediaQueryListEvent {}

impl Castable for MediaStream {}
impl DerivedFrom<EventTarget> for MediaStream {}

impl Castable for MediaStreamAudioDestinationNode {}
impl DerivedFrom<EventTarget> for MediaStreamAudioDestinationNode {}
impl DerivedFrom<AudioNode> for MediaStreamAudioDestinationNode {}

impl Castable for MediaStreamAudioSourceNode {}
impl DerivedFrom<EventTarget> for MediaStreamAudioSourceNode {}
impl DerivedFrom<AudioNode> for MediaStreamAudioSourceNode {}

impl Castable for MediaStreamTrack {}
impl DerivedFrom<EventTarget> for MediaStreamTrack {}

impl Castable for MediaStreamTrackAudioSourceNode {}
impl DerivedFrom<EventTarget> for MediaStreamTrackAudioSourceNode {}
impl DerivedFrom<AudioNode> for MediaStreamTrackAudioSourceNode {}

impl Castable for MessageEvent {}
impl DerivedFrom<Event> for MessageEvent {}

impl Castable for MessagePort {}
impl DerivedFrom<EventTarget> for MessagePort {}

impl Castable for MouseEvent {}
impl DerivedFrom<Event> for MouseEvent {}
impl DerivedFrom<UIEvent> for MouseEvent {}
impl DerivedFrom<MouseEvent> for MouseEvent {}

impl Castable for Node {}
impl DerivedFrom<EventTarget> for Node {}
impl DerivedFrom<Node> for Node {}

impl Castable for NodeList {}
impl DerivedFrom<NodeList> for NodeList {}

impl Castable for OfflineAudioCompletionEvent {}
impl DerivedFrom<Event> for OfflineAudioCompletionEvent {}

impl Castable for OfflineAudioContext {}
impl DerivedFrom<EventTarget> for OfflineAudioContext {}
impl DerivedFrom<BaseAudioContext> for OfflineAudioContext {}

impl Castable for OffscreenCanvas {}
impl DerivedFrom<EventTarget> for OffscreenCanvas {}

impl Castable for OscillatorNode {}
impl DerivedFrom<EventTarget> for OscillatorNode {}
impl DerivedFrom<AudioNode> for OscillatorNode {}
impl DerivedFrom<AudioScheduledSourceNode> for OscillatorNode {}

impl Castable for PageTransitionEvent {}
impl DerivedFrom<Event> for PageTransitionEvent {}

impl Castable for PaintWorkletGlobalScope {}
impl DerivedFrom<EventTarget> for PaintWorkletGlobalScope {}
impl DerivedFrom<GlobalScope> for PaintWorkletGlobalScope {}
impl DerivedFrom<WorkletGlobalScope> for PaintWorkletGlobalScope {}

impl Castable for PannerNode {}
impl DerivedFrom<EventTarget> for PannerNode {}
impl DerivedFrom<AudioNode> for PannerNode {}

impl Castable for Performance {}
impl DerivedFrom<EventTarget> for Performance {}

impl Castable for PerformanceEntry {}
impl DerivedFrom<PerformanceEntry> for PerformanceEntry {}

impl Castable for PerformanceMark {}
impl DerivedFrom<PerformanceEntry> for PerformanceMark {}

impl Castable for PerformanceMeasure {}
impl DerivedFrom<PerformanceEntry> for PerformanceMeasure {}

impl Castable for PerformanceNavigationTiming {}
impl DerivedFrom<PerformanceEntry> for PerformanceNavigationTiming {}
impl DerivedFrom<PerformanceResourceTiming> for PerformanceNavigationTiming {}

impl Castable for PerformancePaintTiming {}
impl DerivedFrom<PerformanceEntry> for PerformancePaintTiming {}

impl Castable for PerformanceResourceTiming {}
impl DerivedFrom<PerformanceEntry> for PerformanceResourceTiming {}
impl DerivedFrom<PerformanceResourceTiming> for PerformanceResourceTiming {}

impl Castable for PermissionStatus {}
impl DerivedFrom<EventTarget> for PermissionStatus {}
impl DerivedFrom<PermissionStatus> for PermissionStatus {}

impl Castable for PopStateEvent {}
impl DerivedFrom<Event> for PopStateEvent {}

impl Castable for ProcessingInstruction {}
impl DerivedFrom<EventTarget> for ProcessingInstruction {}
impl DerivedFrom<Node> for ProcessingInstruction {}
impl DerivedFrom<CharacterData> for ProcessingInstruction {}

impl Castable for ProgressEvent {}
impl DerivedFrom<Event> for ProgressEvent {}

impl Castable for PromiseRejectionEvent {}
impl DerivedFrom<Event> for PromiseRejectionEvent {}

impl Castable for RTCDataChannel {}
impl DerivedFrom<EventTarget> for RTCDataChannel {}

impl Castable for RTCDataChannelEvent {}
impl DerivedFrom<Event> for RTCDataChannelEvent {}

impl Castable for RTCError {}
impl DerivedFrom<DOMException> for RTCError {}

impl Castable for RTCErrorEvent {}
impl DerivedFrom<Event> for RTCErrorEvent {}

impl Castable for RTCPeerConnection {}
impl DerivedFrom<EventTarget> for RTCPeerConnection {}

impl Castable for RTCPeerConnectionIceEvent {}
impl DerivedFrom<Event> for RTCPeerConnectionIceEvent {}

impl Castable for RTCTrackEvent {}
impl DerivedFrom<Event> for RTCTrackEvent {}

impl Castable for RadioNodeList {}
impl DerivedFrom<NodeList> for RadioNodeList {}

impl Castable for SVGElement {}
impl DerivedFrom<EventTarget> for SVGElement {}
impl DerivedFrom<Node> for SVGElement {}
impl DerivedFrom<Element> for SVGElement {}
impl DerivedFrom<SVGElement> for SVGElement {}

impl Castable for SVGGraphicsElement {}
impl DerivedFrom<EventTarget> for SVGGraphicsElement {}
impl DerivedFrom<Node> for SVGGraphicsElement {}
impl DerivedFrom<Element> for SVGGraphicsElement {}
impl DerivedFrom<SVGElement> for SVGGraphicsElement {}
impl DerivedFrom<SVGGraphicsElement> for SVGGraphicsElement {}

impl Castable for SVGSVGElement {}
impl DerivedFrom<EventTarget> for SVGSVGElement {}
impl DerivedFrom<Node> for SVGSVGElement {}
impl DerivedFrom<Element> for SVGSVGElement {}
impl DerivedFrom<SVGElement> for SVGSVGElement {}
impl DerivedFrom<SVGGraphicsElement> for SVGSVGElement {}

impl Castable for ServiceWorker {}
impl DerivedFrom<EventTarget> for ServiceWorker {}

impl Castable for ServiceWorkerContainer {}
impl DerivedFrom<EventTarget> for ServiceWorkerContainer {}

impl Castable for ServiceWorkerGlobalScope {}
impl DerivedFrom<EventTarget> for ServiceWorkerGlobalScope {}
impl DerivedFrom<GlobalScope> for ServiceWorkerGlobalScope {}
impl DerivedFrom<WorkerGlobalScope> for ServiceWorkerGlobalScope {}

impl Castable for ServiceWorkerRegistration {}
impl DerivedFrom<EventTarget> for ServiceWorkerRegistration {}

impl Castable for ShadowRoot {}
impl DerivedFrom<EventTarget> for ShadowRoot {}
impl DerivedFrom<Node> for ShadowRoot {}
impl DerivedFrom<DocumentFragment> for ShadowRoot {}

impl Castable for StereoPannerNode {}
impl DerivedFrom<EventTarget> for StereoPannerNode {}
impl DerivedFrom<AudioNode> for StereoPannerNode {}
impl DerivedFrom<AudioScheduledSourceNode> for StereoPannerNode {}

impl Castable for StorageEvent {}
impl DerivedFrom<Event> for StorageEvent {}

impl Castable for StyleSheet {}
impl DerivedFrom<StyleSheet> for StyleSheet {}

impl Castable for SubmitEvent {}
impl DerivedFrom<Event> for SubmitEvent {}

impl Castable for TestBinding {}
impl DerivedFrom<TestBinding> for TestBinding {}

impl Castable for TestBindingProxy {}
impl DerivedFrom<TestBinding> for TestBindingProxy {}

impl Castable for TestWorkletGlobalScope {}
impl DerivedFrom<EventTarget> for TestWorkletGlobalScope {}
impl DerivedFrom<GlobalScope> for TestWorkletGlobalScope {}
impl DerivedFrom<WorkletGlobalScope> for TestWorkletGlobalScope {}

impl Castable for Text {}
impl DerivedFrom<EventTarget> for Text {}
impl DerivedFrom<Node> for Text {}
impl DerivedFrom<CharacterData> for Text {}
impl DerivedFrom<Text> for Text {}

impl Castable for TextTrack {}
impl DerivedFrom<EventTarget> for TextTrack {}

impl Castable for TextTrackCue {}
impl DerivedFrom<EventTarget> for TextTrackCue {}
impl DerivedFrom<TextTrackCue> for TextTrackCue {}

impl Castable for TextTrackList {}
impl DerivedFrom<EventTarget> for TextTrackList {}

impl Castable for TouchEvent {}
impl DerivedFrom<Event> for TouchEvent {}
impl DerivedFrom<UIEvent> for TouchEvent {}

impl Castable for TrackEvent {}
impl DerivedFrom<Event> for TrackEvent {}

impl Castable for TransitionEvent {}
impl DerivedFrom<Event> for TransitionEvent {}

impl Castable for UIEvent {}
impl DerivedFrom<Event> for UIEvent {}
impl DerivedFrom<UIEvent> for UIEvent {}

impl Castable for VTTCue {}
impl DerivedFrom<EventTarget> for VTTCue {}
impl DerivedFrom<TextTrackCue> for VTTCue {}

impl Castable for VideoTrackList {}
impl DerivedFrom<EventTarget> for VideoTrackList {}

impl Castable for WebGLBuffer {}
impl DerivedFrom<WebGLObject> for WebGLBuffer {}

impl Castable for WebGLContextEvent {}
impl DerivedFrom<Event> for WebGLContextEvent {}

impl Castable for WebGLFramebuffer {}
impl DerivedFrom<WebGLObject> for WebGLFramebuffer {}

impl Castable for WebGLObject {}
impl DerivedFrom<WebGLObject> for WebGLObject {}

impl Castable for WebGLProgram {}
impl DerivedFrom<WebGLObject> for WebGLProgram {}

impl Castable for WebGLQuery {}
impl DerivedFrom<WebGLObject> for WebGLQuery {}

impl Castable for WebGLRenderbuffer {}
impl DerivedFrom<WebGLObject> for WebGLRenderbuffer {}

impl Castable for WebGLSampler {}
impl DerivedFrom<WebGLObject> for WebGLSampler {}

impl Castable for WebGLShader {}
impl DerivedFrom<WebGLObject> for WebGLShader {}

impl Castable for WebGLSync {}
impl DerivedFrom<WebGLObject> for WebGLSync {}

impl Castable for WebGLTexture {}
impl DerivedFrom<WebGLObject> for WebGLTexture {}

impl Castable for WebGLTransformFeedback {}
impl DerivedFrom<WebGLObject> for WebGLTransformFeedback {}

impl Castable for WebGLVertexArrayObject {}
impl DerivedFrom<WebGLObject> for WebGLVertexArrayObject {}

impl Castable for WebGLVertexArrayObjectOES {}
impl DerivedFrom<WebGLObject> for WebGLVertexArrayObjectOES {}

impl Castable for WebSocket {}
impl DerivedFrom<EventTarget> for WebSocket {}

impl Castable for WheelEvent {}
impl DerivedFrom<Event> for WheelEvent {}
impl DerivedFrom<UIEvent> for WheelEvent {}
impl DerivedFrom<MouseEvent> for WheelEvent {}

impl Castable for Window {}
impl DerivedFrom<EventTarget> for Window {}
impl DerivedFrom<GlobalScope> for Window {}

impl Castable for Worker {}
impl DerivedFrom<EventTarget> for Worker {}

impl Castable for WorkerGlobalScope {}
impl DerivedFrom<EventTarget> for WorkerGlobalScope {}
impl DerivedFrom<GlobalScope> for WorkerGlobalScope {}
impl DerivedFrom<WorkerGlobalScope> for WorkerGlobalScope {}

impl Castable for WorkletGlobalScope {}
impl DerivedFrom<EventTarget> for WorkletGlobalScope {}
impl DerivedFrom<GlobalScope> for WorkletGlobalScope {}
impl DerivedFrom<WorkletGlobalScope> for WorkletGlobalScope {}

impl Castable for XMLDocument {}
impl DerivedFrom<EventTarget> for XMLDocument {}
impl DerivedFrom<Node> for XMLDocument {}
impl DerivedFrom<Document> for XMLDocument {}

impl Castable for XMLHttpRequest {}
impl DerivedFrom<EventTarget> for XMLHttpRequest {}
impl DerivedFrom<XMLHttpRequestEventTarget> for XMLHttpRequest {}

impl Castable for XMLHttpRequestEventTarget {}
impl DerivedFrom<EventTarget> for XMLHttpRequestEventTarget {}
impl DerivedFrom<XMLHttpRequestEventTarget> for XMLHttpRequestEventTarget {}

impl Castable for XMLHttpRequestUpload {}
impl DerivedFrom<EventTarget> for XMLHttpRequestUpload {}
impl DerivedFrom<XMLHttpRequestEventTarget> for XMLHttpRequestUpload {}

impl Castable for XRCompositionLayer {}
impl DerivedFrom<EventTarget> for XRCompositionLayer {}
impl DerivedFrom<XRLayer> for XRCompositionLayer {}
impl DerivedFrom<XRCompositionLayer> for XRCompositionLayer {}

impl Castable for XRCubeLayer {}
impl DerivedFrom<EventTarget> for XRCubeLayer {}
impl DerivedFrom<XRLayer> for XRCubeLayer {}
impl DerivedFrom<XRCompositionLayer> for XRCubeLayer {}

impl Castable for XRCylinderLayer {}
impl DerivedFrom<EventTarget> for XRCylinderLayer {}
impl DerivedFrom<XRLayer> for XRCylinderLayer {}
impl DerivedFrom<XRCompositionLayer> for XRCylinderLayer {}

impl Castable for XREquirectLayer {}
impl DerivedFrom<EventTarget> for XREquirectLayer {}
impl DerivedFrom<XRLayer> for XREquirectLayer {}
impl DerivedFrom<XRCompositionLayer> for XREquirectLayer {}

impl Castable for XRInputSourceEvent {}
impl DerivedFrom<Event> for XRInputSourceEvent {}

impl Castable for XRInputSourcesChangeEvent {}
impl DerivedFrom<Event> for XRInputSourcesChangeEvent {}

impl Castable for XRJointPose {}
impl DerivedFrom<XRPose> for XRJointPose {}

impl Castable for XRJointSpace {}
impl DerivedFrom<EventTarget> for XRJointSpace {}
impl DerivedFrom<XRSpace> for XRJointSpace {}

impl Castable for XRLayer {}
impl DerivedFrom<EventTarget> for XRLayer {}
impl DerivedFrom<XRLayer> for XRLayer {}

impl Castable for XRLayerEvent {}
impl DerivedFrom<Event> for XRLayerEvent {}

impl Castable for XRPose {}
impl DerivedFrom<XRPose> for XRPose {}

impl Castable for XRProjectionLayer {}
impl DerivedFrom<EventTarget> for XRProjectionLayer {}
impl DerivedFrom<XRLayer> for XRProjectionLayer {}
impl DerivedFrom<XRCompositionLayer> for XRProjectionLayer {}

impl Castable for XRQuadLayer {}
impl DerivedFrom<EventTarget> for XRQuadLayer {}
impl DerivedFrom<XRLayer> for XRQuadLayer {}
impl DerivedFrom<XRCompositionLayer> for XRQuadLayer {}

impl Castable for XRReferenceSpace {}
impl DerivedFrom<EventTarget> for XRReferenceSpace {}
impl DerivedFrom<XRSpace> for XRReferenceSpace {}

impl Castable for XRSession {}
impl DerivedFrom<EventTarget> for XRSession {}

impl Castable for XRSessionEvent {}
impl DerivedFrom<Event> for XRSessionEvent {}

impl Castable for XRSpace {}
impl DerivedFrom<EventTarget> for XRSpace {}
impl DerivedFrom<XRSpace> for XRSpace {}

impl Castable for XRSubImage {}
impl DerivedFrom<XRSubImage> for XRSubImage {}

impl Castable for XRSystem {}
impl DerivedFrom<EventTarget> for XRSystem {}

impl Castable for XRViewerPose {}
impl DerivedFrom<XRPose> for XRViewerPose {}

impl Castable for XRWebGLLayer {}
impl DerivedFrom<EventTarget> for XRWebGLLayer {}
impl DerivedFrom<XRLayer> for XRWebGLLayer {}

impl Castable for XRWebGLSubImage {}
impl DerivedFrom<XRSubImage> for XRWebGLSubImage {}