-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTMLElementMixin.d.ts
6414 lines (3252 loc) · 375 KB
/
HTMLElementMixin.d.ts
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
// generated by css-chain-test/types/ast-parse.js
import type { CssChainT} from './CssChain';
/** Mixin of HTMLElement inherited and parents from node_modules/typescript/lib/lib.dom.d.ts
all methods return CssChainT
*/
export interface HTMLElementMixin {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) <br/>*/
accessKey:string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) <br/>*/
accessKeyLabel:string;
autocapitalize:string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) <br/>*/
dir:string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) <br/>*/
draggable:boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) <br/>*/
hidden:boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) <br/>*/
inert:boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) <br/>*/
innerText:string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) <br/>*/
lang:string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) <br/>*/
offsetHeight:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) <br/>*/
offsetLeft:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) <br/>*/
offsetParent:Element|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) <br/>*/
offsetTop:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) <br/>*/
offsetWidth:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) <br/>*/
outerText:string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) <br/>*/
spellcheck:boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) <br/>*/
title:string;
translate:boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) <br/>*/
attachInternals():CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) <br/>*/
click():CssChainT;
/** Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) <br/>*/
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions):CssChainT;
/** Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) <br/>*/
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions):CssChainT;
/** Removes the event listener in target's event listener list with the same type, callback, and options.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
Removes the event listener in target's event listener list with the same type, callback, and options.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) <br/>*/
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions):CssChainT;
/** Removes the event listener in target's event listener list with the same type, callback, and options.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
Removes the event listener in target's event listener list with the same type, callback, and options.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) <br/>*/
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) <br/>*/
attributes:NamedNodeMap;
/** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) <br/>*/
classList:DOMTokenList;
/** Returns the value of element's class content attribute. Can be set to change it.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) <br/>*/
className:string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) <br/>*/
clientHeight:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) <br/>*/
clientLeft:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) <br/>*/
clientTop:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) <br/>*/
clientWidth:number;
/** Returns the value of element's id content attribute. Can be set to change it.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) <br/>*/
id:string;
/** Returns the local name.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) <br/>*/
localName:string;
/** Returns the namespace.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) <br/>*/
namespaceURI:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) <br/>*/
onfullscreenchange:((this: Element, ev: Event) => any)|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) <br/>*/
onfullscreenerror:((this: Element, ev: Event) => any)|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) <br/>*/
outerHTML:string;
/** Returns the node document. Returns null for documents.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) <br/>*/
ownerDocument:Document|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) <br/>*/
part:DOMTokenList;
/** Returns the namespace prefix.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) <br/>*/
prefix:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) <br/>*/
scrollHeight:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) <br/>*/
scrollLeft:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) <br/>*/
scrollTop:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) <br/>*/
scrollWidth:number;
/** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) <br/>*/
shadowRoot:ShadowRoot|null;
/** Returns the value of element's slot content attribute. Can be set to change it.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) <br/>*/
slot:string;
/** Returns the HTML-uppercased qualified name.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) <br/>*/
tagName:string;
/** Creates a shadow root for element and returns it.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) <br/>*/
attachShadow(init: ShadowRootInit):CssChainT;
checkVisibility(options?: CheckVisibilityOptions):CssChainT;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) <br/>*/
closest<K extends keyof HTMLElementTagNameMap>(selector: K):CssChainT;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) <br/>*/
closest<K extends keyof SVGElementTagNameMap>(selector: K):CssChainT;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) <br/>*/
closest<K extends keyof MathMLElementTagNameMap>(selector: K):CssChainT;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) <br/>*/
closest<E extends Element = Element>(selectors: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) <br/>*/
computedStyleMap():CssChainT;
/** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) <br/>*/
getAttribute(qualifiedName: string):CssChainT;
/** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) <br/>*/
getAttributeNS(namespace: string | null, localName: string):CssChainT;
/** Returns the qualified names of all element's attributes. Can contain duplicates.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) <br/>*/
getAttributeNames():CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) <br/>*/
getAttributeNode(qualifiedName: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) <br/>*/
getAttributeNodeNS(namespace: string | null, localName: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) <br/>*/
getBoundingClientRect():CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) <br/>*/
getClientRects():CssChainT;
/** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) <br/>*/
getElementsByClassName(classNames: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) <br/>*/
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) <br/>*/
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) <br/>*/
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) <br/>*/
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) <br/>*/
getElementsByTagName(qualifiedName: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) <br/>*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) <br/>*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) <br/>*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) <br/>*/
getElementsByTagNameNS(namespace: string | null, localName: string):CssChainT;
/** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) <br/>*/
hasAttribute(qualifiedName: string):CssChainT;
/** Returns true if element has an attribute whose namespace is namespace and local name is localName.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) <br/>*/
hasAttributeNS(namespace: string | null, localName: string):CssChainT;
/** Returns true if element has attributes, and false otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) <br/>*/
hasAttributes():CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) <br/>*/
hasPointerCapture(pointerId: number):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) <br/>*/
insertAdjacentElement(where: InsertPosition, element: Element):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) <br/>*/
insertAdjacentHTML(position: InsertPosition, text: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) <br/>*/
insertAdjacentText(where: InsertPosition, data: string):CssChainT;
/** Returns true if matching selectors against element's root yields element, and false otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) <br/>*/
matches(selectors: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) <br/>*/
releasePointerCapture(pointerId: number):CssChainT;
/** Removes element's first attribute whose qualified name is qualifiedName.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) <br/>*/
removeAttribute(qualifiedName: string):CssChainT;
/** Removes element's attribute whose namespace is namespace and local name is localName.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) <br/>*/
removeAttributeNS(namespace: string | null, localName: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) <br/>*/
removeAttributeNode(attr: Attr):CssChainT;
/** Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) <br/>*/
requestFullscreen(options?: FullscreenOptions):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) <br/>*/
requestPointerLock():CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) <br/>*/
scroll(options?: ScrollToOptions):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) <br/>*/
scroll(x: number, y: number):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) <br/>*/
scrollBy(options?: ScrollToOptions):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) <br/>*/
scrollBy(x: number, y: number):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) <br/>*/
scrollIntoView(arg?: boolean | ScrollIntoViewOptions):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) <br/>*/
scrollTo(options?: ScrollToOptions):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) <br/>*/
scrollTo(x: number, y: number):CssChainT;
/** Sets the value of element's first attribute whose qualified name is qualifiedName to value.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) <br/>*/
setAttribute(qualifiedName: string, value: string):CssChainT;
/** Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) <br/>*/
setAttributeNS(namespace: string | null, qualifiedName: string, value: string):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) <br/>*/
setAttributeNode(attr: Attr):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) <br/>*/
setAttributeNodeNS(attr: Attr):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) <br/>*/
setPointerCapture(pointerId: number):CssChainT;
/** If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) <br/>*/
toggleAttribute(qualifiedName: string, force?: boolean):CssChainT;
webkitMatchesSelector(selectors: string):CssChainT;
/** Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) <br/>*/
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions):CssChainT;
/** Removes the event listener in target's event listener list with the same type, callback, and options.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
Removes the event listener in target's event listener list with the same type, callback, and options.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) <br/>*/
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions):CssChainT;
/** Returns node's node document's document base URL.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI) <br/>*/
baseURI:string;
/** Returns true if node is connected and false otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected) <br/>*/
isConnected:boolean;
/** Returns the last child.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild) <br/>*/
lastChild:ChildNode|null;
/** Returns the next sibling.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) <br/>*/
nextSibling:ChildNode|null;
/** Returns a string appropriate for the type of node.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName) <br/>*/
nodeName:string;
/** Returns the type of node.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType) <br/>*/
nodeType:number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) <br/>*/
nodeValue:string|null;
/** Returns the parent element.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement) <br/>*/
parentElement:HTMLElement|null;
/** Returns the parent.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode) <br/>*/
parentNode:ParentNode|null;
/** Returns the previous sibling.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) <br/>*/
previousSibling:ChildNode|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) <br/>*/
textContent:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) <br/>*/
appendChild<T extends Node>(node: T):CssChainT;
/** Returns a copy of node. If deep is true, the copy also includes the node's descendants.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) <br/>*/
cloneNode(deep?: boolean):CssChainT;
/** Returns a bitmask indicating the position of other relative to node.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) <br/>*/
compareDocumentPosition(other: Node):CssChainT;
/** Returns true if other is an inclusive descendant of node, and false otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains) <br/>*/
contains(other: Node | null):CssChainT;
/** Returns node's root.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) <br/>*/
getRootNode(options?: GetRootNodeOptions):CssChainT;
/** Returns whether node has children.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) <br/>*/
hasChildNodes():CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) <br/>*/
insertBefore<T extends Node>(node: T, child: Node | null):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) <br/>*/
isDefaultNamespace(namespace: string | null):CssChainT;
/** Returns whether node and otherNode have the same properties.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) <br/>*/
isEqualNode(otherNode: Node | null):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) <br/>*/
isSameNode(otherNode: Node | null):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) <br/>*/
lookupNamespaceURI(prefix: string | null):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) <br/>*/
lookupPrefix(namespace: string | null):CssChainT;
/** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize) <br/>*/
normalize():CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) <br/>*/
removeChild<T extends Node>(child: T):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) <br/>*/
replaceChild<T extends Node>(node: Node, child: T):CssChainT;
/** node is an element. <br/>*/
ELEMENT_NODE:1;
ATTRIBUTE_NODE:2;
/** node is a Text node. <br/>*/
TEXT_NODE:3;
/** node is a CDATASection node. <br/>*/
CDATA_SECTION_NODE:4;
ENTITY_REFERENCE_NODE:5;
ENTITY_NODE:6;
/** node is a ProcessingInstruction node. <br/>*/
PROCESSING_INSTRUCTION_NODE:7;
/** node is a Comment node. <br/>*/
COMMENT_NODE:8;
/** node is a document. <br/>*/
DOCUMENT_NODE:9;
/** node is a doctype. <br/>*/
DOCUMENT_TYPE_NODE:10;
/** node is a DocumentFragment node. <br/>*/
DOCUMENT_FRAGMENT_NODE:11;
NOTATION_NODE:12;
/** Set when node and other are not in the same tree. <br/>*/
DOCUMENT_POSITION_DISCONNECTED:0x01;
/** Set when other is preceding node. <br/>*/
DOCUMENT_POSITION_PRECEDING:0x02;
/** Set when other is following node. <br/>*/
DOCUMENT_POSITION_FOLLOWING:0x04;
/** Set when other is an ancestor of node. <br/>*/
DOCUMENT_POSITION_CONTAINS:0x08;
/** Set when other is a descendant of node. <br/>*/
DOCUMENT_POSITION_CONTAINED_BY:0x10;
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:0x20;
/** Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) <br/>*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean):CssChainT;
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) <br/>*/
dispatchEvent(event: Event):CssChainT;
/** Removes the event listener in target's event listener list with the same type, callback, and options.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) <br/>*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) <br/>*/
ariaAtomic:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) <br/>*/
ariaAutoComplete:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) <br/>*/
ariaBusy:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) <br/>*/
ariaChecked:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) <br/>*/
ariaColCount:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) <br/>*/
ariaColIndex:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) <br/>*/
ariaColSpan:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) <br/>*/
ariaCurrent:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) <br/>*/
ariaDisabled:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) <br/>*/
ariaExpanded:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) <br/>*/
ariaHasPopup:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) <br/>*/
ariaHidden:string|null;
ariaInvalid:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) <br/>*/
ariaKeyShortcuts:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) <br/>*/
ariaLabel:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) <br/>*/
ariaLevel:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) <br/>*/
ariaLive:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) <br/>*/
ariaModal:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) <br/>*/
ariaMultiLine:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) <br/>*/
ariaMultiSelectable:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) <br/>*/
ariaOrientation:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) <br/>*/
ariaPlaceholder:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) <br/>*/
ariaPosInSet:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) <br/>*/
ariaPressed:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) <br/>*/
ariaReadOnly:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) <br/>*/
ariaRequired:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) <br/>*/
ariaRoleDescription:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) <br/>*/
ariaRowCount:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) <br/>*/
ariaRowIndex:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) <br/>*/
ariaRowSpan:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) <br/>*/
ariaSelected:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) <br/>*/
ariaSetSize:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) <br/>*/
ariaSort:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) <br/>*/
ariaValueMax:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) <br/>*/
ariaValueMin:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) <br/>*/
ariaValueNow:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) <br/>*/
ariaValueText:string|null;
role:string|null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) <br/>*/
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) <br/>*/
getAnimations(options?: GetAnimationsOptions):CssChainT;
/** Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) <br/>*/
after(...nodes: (Node | string)[]):CssChainT;
/** Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) <br/>*/
before(...nodes: (Node | string)[]):CssChainT;
/** Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) <br/>*/
replaceWith(...nodes: (Node | string)[]):CssChainT;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) <br/>*/
innerHTML:string;
/** Returns the first following sibling that is an element, and null otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) <br/>*/
nextElementSibling:Element|null;
/** Returns the first preceding sibling that is an element, and null otherwise.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) <br/>*/