-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapiList.js
More file actions
1212 lines (1212 loc) · 38.8 KB
/
apiList.js
File metadata and controls
1212 lines (1212 loc) · 38.8 KB
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
var apiList = [
{
name: 'Audio',
check: () => typeof Audio !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLAudioElement',
type: "HTML5 APIs"
},
{
name: 'Canvas',
check: () => !!document.createElement('canvas').getContext,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Canvas_API',
type: "HTML5 APIs"
},
{
name: '拖放 Drag & Drop',
check: () => 'draggable' in document.createElement('span'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/HTML_Drag_and_Drop_API',
type: "HTML5 APIs"
},
{
name: '文件系统访问 API File System Access API',
check: () => 'showOpenFilePicker' in window || 'chooseFileSystemEntries' in window,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/File_System_Access_API',
type: "HTML5 APIs"
},
{
name: '表单验证 Form Validation',
check: () => typeof document.createElement('input').checkValidity === 'function',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Learn/Forms/Form_validation',
type: "HTML5 APIs"
},
{
name: '地理位置 Geolocation',
check: () => 'geolocation' in navigator,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Geolocation_API',
type: "HTML5 APIs"
},
{
name: '历史记录管理 History API',
check: () => !!(window.history && history.pushState),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/History_API',
type: "HTML5 APIs"
},
{
name: 'IndexedDB',
check: () => typeof indexedDB !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/IndexedDB_API',
type: "HTML5 APIs"
},
{
name: '通知 API Notifications API',
check: () => typeof Notification !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Notifications_API',
type: "HTML5 APIs"
},
{
name: '页面可见性 Page Visibility',
check: () => typeof document.hidden !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Page_Visibility_API',
type: "HTML5 APIs"
},
{
name: '全屏 API Fullscreen API',
check: () => typeof document.exitFullscreen !== 'undefined' || typeof document.webkitExitFullscreen !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Fullscreen_API',
type: "HTML5 APIs"
},
{
name: '屏幕唤醒锁 Screen Wake Lock',
check: () => 'wakeLock' in navigator,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Screen_Wake_Lock_API',
type: "HTML5 APIs"
},
{
name: '用户媒体 User Media (摄像头/麦克风)',
check: () => navigator.mediaDevices && typeof navigator.mediaDevices.getUserMedia === 'function',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/MediaDevices/getUserMedia',
type: "HTML5 APIs"
},
{
name: '视频 Video',
check: () => !!document.createElement('video').canPlayType,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLVideoElement',
type: "HTML5 APIs"
},
{
name: 'Web Share API',
check: () => typeof navigator.share !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Share_API',
type: "HTML5 APIs"
},
{
name: 'Web Speech API',
check: () => typeof SpeechRecognition !== 'undefined' || typeof webkitSpeechRecognition !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Speech_API',
type: "HTML5 APIs"
},
{
name: 'WebVR API',
check: () => typeof navigator.getVRDisplays !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/WebVR_API',
type: "HTML5 APIs"
},
{
name: 'WebXR Device API',
check: () => typeof navigator.xr !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/WebXR_Device_API',
type: "HTML5 APIs"
},
{
name: 'Battery Status API',
check: () => typeof navigator.getBattery !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Battery_Status_API',
type: "HTML5 APIs"
},
{
name: 'Clipboard API',
check: () => typeof navigator.clipboard !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Clipboard_API',
type: "HTML5 APIs"
},
{
name: 'Gamepad API',
check: () => typeof navigator.getGamepads !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Gamepad_API',
type: "HTML5 APIs"
},
{
name: 'Payment Request API',
check: () => typeof PaymentRequest !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Payment_Request_API',
type: "HTML5 APIs"
},
{
name: 'Picture-in-Picture API',
check: () => typeof document.createElement('video').requestPictureInPicture !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Picture-in-Picture_API',
type: "HTML5 APIs"
},
{
name: 'Pointer Lock API',
check: () => typeof document.exitPointerLock !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Pointer_Lock_API',
type: "HTML5 APIs"
},
{
name: 'Vibration API',
check: () => typeof navigator.vibrate !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Vibration_API',
type: "HTML5 APIs"
},
{
name: 'Web Socket',
check: () => typeof WebSocket !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/WebSockets_API',
type: "HTML5 APIs"
},
{
name: 'Server-Sent Events',
check: () => typeof EventSource !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Server-sent_events',
type: "HTML5 APIs"
},
{
name: 'Web Storage',
check: () => typeof localStorage !== 'undefined' && typeof sessionStorage !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Storage_API',
type: "HTML5 APIs"
},
{
name: 'Web Workers',
check: () => typeof Worker !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Workers_API',
type: "HTML5 APIs"
},
{
name: 'Shared Worker',
check: () => typeof SharedWorker !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/SharedWorker',
type: "HTML5 APIs"
},
{
name: 'Service Worker',
check: () => 'serviceWorker' in navigator,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Service_Worker_API',
type: "HTML5 APIs"
},
{
name: 'Cache API',
check: () => typeof caches !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Cache',
type: "HTML5 APIs"
},
{
name: 'Push API',
check: () => 'PushManager' in window,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Push_API',
type: "HTML5 APIs"
},
{
name: 'Background Sync',
check: () => 'sync' in navigator,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Background_Synchronization_API',
type: "HTML5 APIs"
},
{
name: 'Background Fetch',
check: () => 'backgroundFetch' in navigator,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Background_Fetch_API',
type: "HTML5 APIs"
},
{
name: 'Web Bluetooth',
check: () => typeof navigator.bluetooth !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Bluetooth_API',
type: "HTML5 APIs"
},
{
name: 'WebUSB',
check: () => typeof navigator.usb !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/USB',
type: "HTML5 APIs"
},
{
name: 'Web Serial',
check: () => typeof navigator.serial !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Serial_API',
type: "HTML5 APIs"
},
{
name: 'Web MIDI',
check: () => typeof navigator.requestMIDIAccess !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_MIDI_API',
type: "HTML5 APIs"
},
{
name: 'Web NFC',
check: () => typeof navigator.nfc !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/NFC_API',
type: "HTML5 APIs"
},
{
name: 'Web Authentication API',
check: () => typeof PublicKeyCredential !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Authentication_API',
type: "HTML5 APIs"
},
{
name: 'Credential Management API',
check: () => typeof navigator.credentials !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Credential_Management_API',
type: "HTML5 APIs"
},
{
name: 'Contact Picker API',
check: () => typeof navigator.contacts !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Contact_Picker_API',
type: "HTML5 APIs"
},
{
name: 'Idle Detection API',
check: () => typeof IdleDetector !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Idle_Detection_API',
type: "HTML5 APIs"
},
{
name: 'Storage Access API',
check: () => typeof document.hasStorageAccess !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Storage_Access_API',
type: "HTML5 APIs"
},
{
name: 'EyeDropper API',
check: () => typeof EyeDropper !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/EyeDropper_API',
type: "HTML5 APIs"
},
{
name: 'File API',
check: () => typeof File !== 'undefined' && typeof FileReader !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/File_API',
type: "HTML5 APIs"
},
{
name: 'File and Directory Entries API',
check: () => typeof window.webkitRequestFileSystem !== 'undefined' || typeof window.requestFileSystem !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/File_and_Directory_Entries_API',
type: "HTML5 APIs"
},
{
name: 'Streams API',
check: () => typeof ReadableStream !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Streams_API',
type: "HTML5 APIs"
},
{
name: 'Web Animations API',
check: () => typeof Element.prototype.animate !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Web_Animations_API',
type: "HTML5 APIs"
},
{
name: 'Web Components',
check: () => typeof customElements !== 'undefined' && typeof ShadowRoot !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/Web_Components',
type: "HTML5 APIs"
},
{
name: 'IntersectionObserver',
check: () => typeof IntersectionObserver !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/IntersectionObserver',
type: "HTML5 APIs"
},
{
name: 'ResizeObserver',
check: () => typeof ResizeObserver !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/ResizeObserver',
type: "HTML5 APIs"
},
{
name: 'Performance API',
check: () => typeof performance !== 'undefined' && typeof PerformanceObserver !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Performance_API',
type: "HTML5 APIs"
},
{
name: 'Reporting API',
check: () => typeof ReportingObserver !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Reporting_API',
type: "HTML5 APIs"
},
{
name: 'WebGL',
check: () => {
const canvas = document.createElement('canvas');
return !!(canvas.getContext('webgl') || canvas.getContext('experimental-webgl'));
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/WebGL_API',
type: "HTML5 APIs"
},
{
name: 'WebGL 2',
check: () => {
const canvas = document.createElement('canvas');
return !!(canvas.getContext('webgl2'));
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/WebGL2RenderingContext',
type: "HTML5 APIs"
},
{
name: 'WebGPU',
check: () => typeof navigator.gpu !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/WebGPU_API',
type: "HTML5 APIs"
},
{
name: 'Encoding API',
check: () => typeof TextEncoder !== 'undefined' && typeof TextDecoder !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Encoding_API',
type: "HTML5 APIs"
},
{
name: 'Internationalization API',
check: () => typeof Intl !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl'
},
{
name: 'URL API',
check: () => typeof URL !== 'undefined' && typeof URLSearchParams !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/URL_API',
type: "HTML5 APIs"
},
{
name: 'BroadcastChannel',
check: () => typeof BroadcastChannel !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Broadcast_Channel_API',
type: "HTML5 APIs"
},
{
name: 'Channel Messaging API',
check: () => typeof MessageChannel !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Channel_Messaging_API',
type: "HTML5 APIs"
},
{
name: 'Beacon API',
check: () => typeof navigator.sendBeacon !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Beacon_API',
type: "HTML5 APIs"
},
{
name: 'AbortController',
check: () => typeof AbortController !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/AbortController',
type: "HTML5 APIs"
},
{
name: 'Fetch API',
check: () => typeof fetch !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API',
type: "HTML5 APIs"
},
{
name: 'AbortSignal',
check: () => typeof AbortSignal !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/AbortSignal',
type: "HTML5 APIs"
},
{
name: 'CSS Animation',
check: () => typeof CSS !== 'undefined' && CSS.supports('animation: none'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/animation',
type: "CSS"
},
{
name: 'CSS Background Blend Mode',
check: () => typeof CSS !== 'undefined' && CSS.supports('background-blend-mode: normal'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-blend-mode',
type: "CSS"
},
{
name: 'CSS Box Shadow',
check: () => typeof CSS !== 'undefined' && CSS.supports('box-shadow: 0 0 0 #000'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/box-shadow',
type: "CSS"
},
{
name: 'CSS Clip Path',
check: () => typeof CSS !== 'undefined' && CSS.supports('clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/clip-path',
type: "CSS"
},
{
name: 'CSS Containment',
check: () => typeof CSS !== 'undefined' && CSS.supports('contain: none'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/contain',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Custom Properties (CSS Variables)',
check: () => typeof CSS !== 'undefined' && CSS.supports('--fake-var: 0'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Filter',
check: () => typeof CSS !== 'undefined' && CSS.supports('filter: blur(0)'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/filter',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Flexbox',
check: () => typeof CSS !== 'undefined' && CSS.supports('display: flex'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Font Loading',
check: () => typeof FontFace !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/CSS_Font_Loading_API',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Font Feature Settings',
check: () => typeof CSS !== 'undefined' && CSS.supports('font-feature-settings: normal'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-feature-settings',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Font Kerning',
check: () => typeof CSS !== 'undefined' && CSS.supports('font-kerning: auto'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-kerning',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Font Variant',
check: () => typeof CSS !== 'undefined' && CSS.supports('font-variant: normal'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-variant',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Grid',
check: () => typeof CSS !== 'undefined' && CSS.supports('display: grid'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Grid_Layout',
type: "CSS",
type: "CSS"
},
{
name: 'CSS Houdini',
check: () => typeof CSS !== 'undefined' && typeof CSS.paintWorklet !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/Houdini',
type: "CSS"
},
{
name: 'CSS Layout API',
check: () => typeof CSS !== 'undefined' && typeof CSS.layoutWorklet !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/CSS Layout API',
type: "CSS"
},
{
name: 'CSS Logical Properties',
check: () => typeof CSS !== 'undefined' && CSS.supports('margin-inline-start: 0'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Logical_Properties',
type: "CSS"
},
{
name: 'CSS Mask',
check: () => typeof CSS !== 'undefined' && CSS.supports('mask: none'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/mask',
type: "CSS"
},
{
name: 'CSS Multi-column Layout',
check: () => typeof CSS !== 'undefined' && CSS.supports('column-count: 1'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Columns',
type: "CSS"
},
{
name: 'CSS Object Fit',
check: () => typeof CSS !== 'undefined' && CSS.supports('object-fit: fill'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit',
type: "CSS"
},
{
name: 'CSS Overscroll Behavior',
check: () => typeof CSS !== 'undefined' && CSS.supports('overscroll-behavior: auto'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/overscroll-behavior',
type: "CSS"
},
{
name: 'CSS Paint API',
check: () => typeof CSS !== 'undefined' && typeof CSS.paintWorklet !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/CSS_Painting_API',
type: "CSS"
},
{
name: 'CSS Scroll Behavior',
check: () => typeof CSS !== 'undefined' && CSS.supports('scroll-behavior: auto'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/scroll-behavior',
type: "CSS"
},
{
name: 'CSS Scroll Snap',
check: () => typeof CSS !== 'undefined' && CSS.supports('scroll-snap-type: none'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Scroll_Snap',
type: "CSS"
},
{
name: 'CSS Scrollbar Styling',
check: () => typeof CSS !== 'undefined' && CSS.supports('scrollbar-width: auto'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Scrollbars',
type: "CSS"
},
{
name: 'CSS Shapes',
check: () => typeof CSS !== 'undefined' && CSS.supports('shape-outside: none'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Shapes',
type: "CSS"
},
{
name: 'CSS Text Decoration',
check: () => typeof CSS !== 'undefined' && CSS.supports('text-decoration: none'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/text-decoration',
type: "CSS"
},
{
name: 'CSS Transform',
check: () => typeof CSS !== 'undefined' && CSS.supports('transform: none'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform',
type: "CSS"
},
{
name: 'CSS Transform 3D',
check: () => typeof CSS !== 'undefined' && CSS.supports('transform-style: flat'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-style',
type: "CSS"
},
{
name: 'CSS Transition',
check: () => typeof CSS !== 'undefined' && CSS.supports('transition: all 0s'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Transitions',
type: "CSS"
},
{
name: 'CSS Typed OM',
check: () => typeof CSS !== 'undefined' && typeof CSSUnitValue !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/CSS_Typed_OM_API',
type: "CSS"
},
{
name: 'CSS Will Change',
check: () => typeof CSS !== 'undefined' && CSS.supports('will-change: auto'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/will-change',
type: "CSS"
},
{
name: 'CSS Writing Modes',
check: () => typeof CSS !== 'undefined' && CSS.supports('writing-mode: horizontal-tb'),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Writing_Modes',
type: "CSS"
},
{
name: 'Array.from()',
check: () => Array.from !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from',
type: "JS"
},
{
name: 'Array.of()',
check: () => Array.of !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/of',
type: "JS"
},
{
name: 'Array.includes()',
check: () => Array.prototype.includes !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/includes',
type: "JS"
},
{
name: 'Array.find()',
check: () => Array.prototype.find !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/find',
type: "JS"
},
{
name: 'Array.findIndex()',
check: () => Array.prototype.findIndex !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex',
type: "JS"
},
{
name: 'Array.fill()',
check: () => Array.prototype.fill !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/fill',
type: "JS"
},
{
name: 'Array.copyWithin()',
check: () => Array.prototype.copyWithin !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin',
type: "JS"
},
{
name: 'Array.flat()',
check: () => Array.prototype.flat !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/flat',
type: "JS"
},
{
name: 'Array.flatMap()',
check: () => Array.prototype.flatMap !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap',
type: "JS"
},
{
name: 'Arrow Functions',
check: () => {
try {
return eval('(() => true)()');
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions',
type: "JS"
},
{
name: 'Async/Await',
check: () => {
try {
eval('async function f() {}; f();');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/async_function',
type: "JS"
},
{
name: 'Async Functions',
check: () => typeof async !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/async_function',
type: "JS"
},
{
name: 'Async Iteration',
check: () => {
try {
eval('(async function () { for await (const x of []) {}; })()');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/for-await...of',
type: "JS"
},
{
name: 'Atomics',
check: () => typeof Atomics !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Atomics',
type: "JS"
},
{
name: 'BigInt',
check: () => typeof BigInt !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/BigInt',
type: "JS"
},
{
name: 'BroadcastChannel',
check: () => typeof BroadcastChannel !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Broadcast_Channel_API',
type: "JS"
},
{
name: 'Classes',
check: () => {
try {
eval('class A {}; new A();');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Classes',
type: "JS"
},
{
name: 'Class Fields',
check: () => {
try {
eval('class A { a = 1; }; new A();');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Classes/Public_class_fields',
type: "JS"
},
{
name: 'Private Class Fields',
check: () => {
try {
eval('class A { #a = 1; }; new A();');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Classes/Private_class_fields',
type: "JS"
},
{
name: 'Static Class Fields',
check: () => {
try {
eval('class A { static a = 1; }; A.a;');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Classes/Public_class_fields',
type: "JS"
},
{
name: 'Computed Property Names',
check: () => {
try {
eval('var a = {[Symbol()]: 1};');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Object_initializer#computed_property_names',
type: "JS"
},
{
name: 'Destructuring Assignment',
check: () => {
try {
eval('var {a} = {a:1}; var [b] = [1];');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment',
type: "JS"
},
{
name: 'ES Modules',
check: () => HTMLScriptElement.supports?.("importmap"),
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Modules',
type: "JS"
},
{
name: 'Default Parameters',
check: () => {
try {
eval('function f(a=1) {}; f();');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Default_parameters',
type: "JS"
},
{
name: 'Exponentiation Operator',
check: () => {
try {
eval('2 ** 2');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Exponentiation',
type: "JS"
},
{
name: 'Fetch API',
check: () => typeof fetch !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API',
type: "JS"
},
{
name: 'For..of Loop',
check: () => {
try {
eval('for (var i of []) {}');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/for...of',
type: "JS"
},
{
name: 'Generators',
check: () => {
try {
eval('function* f() {}; f();');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/function*',
type: "JS"
},
{
name: 'Internationalization API',
check: () => typeof Intl !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl',
type: "JS"
},
{
name: 'Intl.RelativeTimeFormat',
check: () => typeof Intl !== 'undefined' && typeof Intl.RelativeTimeFormat !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat',
type: "JS"
},
{
name: 'Intl.ListFormat',
check: () => typeof Intl !== 'undefined' && typeof Intl.ListFormat !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat',
type: "JS"
},
{
name: 'Intl.PluralRules',
check: () => typeof Intl !== 'undefined' && typeof Intl.PluralRules !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules',
type: "JS"
},
{
name: 'Intl.NumberFormat',
check: () => typeof Intl !== 'undefined' && typeof Intl.NumberFormat !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat',
type: "JS"
},
{
name: 'Intl.DateTimeFormat',
check: () => typeof Intl !== 'undefined' && typeof Intl.DateTimeFormat !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat',
type: "JS"
},
{
name: 'JSON',
check: () => typeof JSON !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/JSON',
type: "JS"
},
{
name: 'Map',
check: () => typeof Map !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Map',
type: "JS"
},
{
name: 'Math Methods',
check: () => typeof Math.trunc !== 'undefined' && typeof Math.sign !== 'undefined' && typeof Math.cbrt !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math',
type: "JS"
},
{
name: 'Modules (ES6)',
check: () => {
try {
new Function('import("")');
return true;
} catch (e) {
return false;
}
},
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Modules',
type: "JS"
},
{
name: 'Object.assign()',
check: () => Object.assign !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/assign',
type: "JS"
},
{
name: 'Object.values()',
check: () => Object.values !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/values',
type: "JS"
},
{
name: 'Object.entries()',
check: () => Object.entries !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/entries',
type: "JS"
},
{
name: 'Object.getOwnPropertyDescriptors()',
check: () => Object.getOwnPropertyDescriptors !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors',
type: "JS"
},
{
name: 'Object.fromEntries()',
check: () => Object.fromEntries !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries',
type: "JS"
},
{
name: 'Promise',
check: () => typeof Promise !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise',
type: "JS"
},
{
name: 'Promise.allSettled()',
check: () => Promise.allSettled !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled',
type: "JS"
},
{
name: 'Promise.any()',
check: () => Promise.any !== undefined,
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/any',
type: "JS"
},
{
name: 'Proxy',
check: () => typeof Proxy !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Proxy',
type: "JS"
},
{
name: 'Reflect',
check: () => typeof Reflect !== 'undefined',
mdnLink: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Reflect',
type: "JS"
},
{
name: 'RegExp Sticky Flag',
check: () => {
try {
return new RegExp('', 'y').sticky === true;
} catch (e) {