chrome-devtools-frontend 1.0.1014346 → 1.0.1015658

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/.eslintignore +1 -0
  2. package/config/gni/devtools_grd_files.gni +4 -2
  3. package/front_end/core/common/JavaScriptMetaData.ts +20 -0
  4. package/front_end/core/i18n/locales/af.json +195 -93
  5. package/front_end/core/i18n/locales/am.json +191 -89
  6. package/front_end/core/i18n/locales/ar.json +193 -91
  7. package/front_end/core/i18n/locales/as.json +192 -90
  8. package/front_end/core/i18n/locales/az.json +191 -89
  9. package/front_end/core/i18n/locales/be.json +191 -89
  10. package/front_end/core/i18n/locales/bg.json +190 -88
  11. package/front_end/core/i18n/locales/bn.json +191 -89
  12. package/front_end/core/i18n/locales/bs.json +193 -91
  13. package/front_end/core/i18n/locales/ca.json +189 -87
  14. package/front_end/core/i18n/locales/cs.json +191 -89
  15. package/front_end/core/i18n/locales/cy.json +191 -89
  16. package/front_end/core/i18n/locales/da.json +191 -89
  17. package/front_end/core/i18n/locales/de.json +193 -91
  18. package/front_end/core/i18n/locales/el.json +174 -72
  19. package/front_end/core/i18n/locales/en-GB.json +132 -30
  20. package/front_end/core/i18n/locales/en-US.json +3 -3
  21. package/front_end/core/i18n/locales/en-XL.json +3 -3
  22. package/front_end/core/i18n/locales/es-419.json +192 -90
  23. package/front_end/core/i18n/locales/es.json +200 -98
  24. package/front_end/core/i18n/locales/et.json +190 -88
  25. package/front_end/core/i18n/locales/eu.json +197 -95
  26. package/front_end/core/i18n/locales/fa.json +192 -90
  27. package/front_end/core/i18n/locales/fi.json +192 -90
  28. package/front_end/core/i18n/locales/fil.json +190 -88
  29. package/front_end/core/i18n/locales/fr-CA.json +191 -89
  30. package/front_end/core/i18n/locales/fr.json +192 -90
  31. package/front_end/core/i18n/locales/gl.json +173 -71
  32. package/front_end/core/i18n/locales/gu.json +192 -90
  33. package/front_end/core/i18n/locales/he.json +191 -89
  34. package/front_end/core/i18n/locales/hi.json +172 -70
  35. package/front_end/core/i18n/locales/hr.json +180 -78
  36. package/front_end/core/i18n/locales/hu.json +191 -89
  37. package/front_end/core/i18n/locales/hy.json +192 -90
  38. package/front_end/core/i18n/locales/id.json +192 -90
  39. package/front_end/core/i18n/locales/is.json +176 -74
  40. package/front_end/core/i18n/locales/it.json +192 -90
  41. package/front_end/core/i18n/locales/ja.json +190 -88
  42. package/front_end/core/i18n/locales/ka.json +190 -88
  43. package/front_end/core/i18n/locales/kk.json +198 -96
  44. package/front_end/core/i18n/locales/km.json +195 -93
  45. package/front_end/core/i18n/locales/kn.json +193 -91
  46. package/front_end/core/i18n/locales/ko.json +190 -88
  47. package/front_end/core/i18n/locales/ky.json +193 -91
  48. package/front_end/core/i18n/locales/lo.json +192 -90
  49. package/front_end/core/i18n/locales/lt.json +193 -91
  50. package/front_end/core/i18n/locales/lv.json +175 -73
  51. package/front_end/core/i18n/locales/mk.json +193 -91
  52. package/front_end/core/i18n/locales/ml.json +193 -91
  53. package/front_end/core/i18n/locales/mn.json +190 -88
  54. package/front_end/core/i18n/locales/mr.json +191 -89
  55. package/front_end/core/i18n/locales/ms.json +190 -88
  56. package/front_end/core/i18n/locales/my.json +191 -89
  57. package/front_end/core/i18n/locales/ne.json +172 -70
  58. package/front_end/core/i18n/locales/nl.json +191 -89
  59. package/front_end/core/i18n/locales/no.json +191 -89
  60. package/front_end/core/i18n/locales/or.json +196 -94
  61. package/front_end/core/i18n/locales/pa.json +191 -89
  62. package/front_end/core/i18n/locales/pl.json +191 -89
  63. package/front_end/core/i18n/locales/pt-PT.json +199 -97
  64. package/front_end/core/i18n/locales/pt.json +191 -89
  65. package/front_end/core/i18n/locales/ro.json +193 -91
  66. package/front_end/core/i18n/locales/ru.json +193 -91
  67. package/front_end/core/i18n/locales/si.json +191 -89
  68. package/front_end/core/i18n/locales/sk.json +192 -90
  69. package/front_end/core/i18n/locales/sl.json +191 -89
  70. package/front_end/core/i18n/locales/sq.json +193 -91
  71. package/front_end/core/i18n/locales/sr-Latn.json +190 -88
  72. package/front_end/core/i18n/locales/sr.json +190 -88
  73. package/front_end/core/i18n/locales/sv.json +191 -89
  74. package/front_end/core/i18n/locales/sw.json +192 -90
  75. package/front_end/core/i18n/locales/ta.json +193 -91
  76. package/front_end/core/i18n/locales/te.json +134 -32
  77. package/front_end/core/i18n/locales/th.json +190 -88
  78. package/front_end/core/i18n/locales/tr.json +193 -91
  79. package/front_end/core/i18n/locales/uk.json +193 -91
  80. package/front_end/core/i18n/locales/ur.json +191 -89
  81. package/front_end/core/i18n/locales/uz.json +190 -88
  82. package/front_end/core/i18n/locales/vi.json +190 -88
  83. package/front_end/core/i18n/locales/zh-HK.json +192 -90
  84. package/front_end/core/i18n/locales/zh-TW.json +195 -93
  85. package/front_end/core/i18n/locales/zh.json +191 -89
  86. package/front_end/core/i18n/locales/zu.json +192 -90
  87. package/front_end/core/sdk/DOMModel.ts +9 -0
  88. package/front_end/core/sdk/DebuggerModel.ts +0 -28
  89. package/front_end/core/sdk/Script.ts +5 -14
  90. package/front_end/core/sdk/SourceMap.ts +88 -27
  91. package/front_end/generated/InspectorBackendCommands.js +7 -3
  92. package/front_end/generated/protocol-mapping.d.ts +16 -0
  93. package/front_end/generated/protocol-proxy-api.d.ts +18 -0
  94. package/front_end/generated/protocol.ts +31 -5
  95. package/front_end/models/bindings/ResourceScriptMapping.ts +1 -2
  96. package/front_end/models/emulation/EmulatedDevices.ts +0 -13
  97. package/front_end/models/javascript_metadata/DOMPinnedProperties.ts +247 -225
  98. package/front_end/models/javascript_metadata/JavaScriptMetadata.ts +3 -0
  99. package/front_end/models/javascript_metadata/NativeFunctions.js +4 -4
  100. package/front_end/models/javascript_metadata/javascript_metadata.ts +3 -0
  101. package/front_end/models/source_map_scopes/NamesResolver.ts +99 -23
  102. package/front_end/panels/elements/ElementsTreeElement.ts +7 -3
  103. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +3 -4
  104. package/front_end/panels/elements/components/LayoutPane.ts +3 -4
  105. package/front_end/panels/elements/components/QueryContainer.ts +3 -4
  106. package/front_end/panels/elements/components/components.ts +0 -2
  107. package/front_end/panels/lighthouse/lighthouseStartView.css +3 -1
  108. package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -42
  109. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +64 -8
  110. package/front_end/{panels/elements/components → ui/components/node_text}/NodeText.ts +2 -1
  111. package/front_end/{panels/elements/components → ui/components/node_text}/nodeText.css +0 -0
  112. package/front_end/ui/components/node_text/node_text.ts +9 -0
  113. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -5
  114. package/front_end/ui/legacy/components/object_ui/objectValue.css +1 -4
  115. package/package.json +1 -1
  116. package/scripts/webidl-properties/config.js +305 -239
  117. package/scripts/webidl-properties/get-props.js +23 -12
  118. package/scripts/webidl-properties/index.js +14 -9
  119. package/scripts/webidl-properties/tests.js +58 -14
@@ -22,6 +22,8 @@ export interface DOMPinnedWebIDLProp {
22
22
  // A bitfield of the specs in which the property is found.
23
23
  // If missing, it implies the default spec: "html".
24
24
  specs?: number;
25
+ // The "states" in which this property is "applicable".
26
+ rules?: Array<DOMPinnedWebIDLRule>;
25
27
  }
26
28
 
27
29
  export interface DOMPinnedWebIDLType {
@@ -35,12 +37,12 @@ export interface DOMPinnedWebIDLType {
35
37
  [PropName: string]: DOMPinnedWebIDLProp,
36
38
  };
37
39
  // The "states" in which only certain properties are "applicable".
38
- states?: {
39
- // A CSS selector such as "[type=checkbox]".
40
- [State: string]: {
41
- [PropName: string]: DOMPinnedWebIDLProp,
42
- },
43
- };
40
+ rules?: Array<DOMPinnedWebIDLRule>;
41
+ }
42
+
43
+ export interface DOMPinnedWebIDLRule {
44
+ when: string;
45
+ is: string;
44
46
  }
45
47
 
46
48
  export interface DOMPinnedPropertiesDataset {
@@ -496,237 +498,257 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
496
498
  'HTMLInputElement': {
497
499
  'inheritance': 'HTMLElement',
498
500
  'props': {
499
- 'accept': {},
500
- 'alt': {},
501
- 'autocomplete': {},
501
+ 'accept': {'rules': [{'when': 'type', 'is': 'file'}]},
502
+ 'alt': {'rules': [{'when': 'type', 'is': 'image'}]},
503
+ 'autocomplete': {
504
+ 'rules': [
505
+ {'when': 'type', 'is': 'hidden'},
506
+ {'when': 'type', 'is': 'text'},
507
+ {'when': 'type', 'is': 'search'},
508
+ {'when': 'type', 'is': 'url'},
509
+ {'when': 'type', 'is': 'tel'},
510
+ {'when': 'type', 'is': 'email'},
511
+ {'when': 'type', 'is': 'password'},
512
+ {'when': 'type', 'is': 'date'},
513
+ {'when': 'type', 'is': 'month'},
514
+ {'when': 'type', 'is': 'week'},
515
+ {'when': 'type', 'is': 'time'},
516
+ {'when': 'type', 'is': 'datetime-local'},
517
+ {'when': 'type', 'is': 'number'},
518
+ {'when': 'type', 'is': 'range'},
519
+ {'when': 'type', 'is': 'color'},
520
+ ],
521
+ },
502
522
  'defaultChecked': {},
503
- 'checked': {},
504
- 'dirName': {},
523
+ 'checked': {'rules': [{'when': 'type', 'is': 'checkbox'}, {'when': 'type', 'is': 'radio'}]},
524
+ 'dirName': {'rules': [{'when': 'type', 'is': 'text'}, {'when': 'type', 'is': 'search'}]},
505
525
  'disabled': {},
506
526
  'form': {},
507
- 'files': {},
508
- 'formAction': {},
509
- 'formEnctype': {},
510
- 'formMethod': {},
511
- 'formNoValidate': {},
512
- 'formTarget': {},
513
- 'height': {},
527
+ 'files': {'rules': [{'when': 'type', 'is': 'file'}]},
528
+ 'formAction': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
529
+ 'formEnctype': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
530
+ 'formMethod': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
531
+ 'formNoValidate': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
532
+ 'formTarget': {'rules': [{'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}]},
533
+ 'height': {'rules': [{'when': 'type', 'is': 'image'}]},
514
534
  'indeterminate': {},
515
- 'list': {},
516
- 'max': {},
517
- 'maxLength': {},
518
- 'min': {},
519
- 'minLength': {},
520
- 'multiple': {},
521
- 'name': {},
522
- 'pattern': {},
523
- 'placeholder': {},
524
- 'readOnly': {},
525
- 'required': {},
526
- 'size': {},
527
- 'src': {},
528
- 'step': {},
529
- 'type': {},
530
- 'defaultValue': {},
531
- 'value': {},
532
- 'valueAsDate': {},
533
- 'valueAsNumber': {},
534
- 'width': {},
535
- 'willValidate': {},
536
- 'validity': {},
537
- 'validationMessage': {},
538
- 'labels': {},
539
- 'selectionStart': {},
540
- 'selectionEnd': {},
541
- 'selectionDirection': {},
542
- 'align': {},
543
- 'useMap': {},
544
- },
545
- 'states': {
546
- '[type=hidden]': {'autocomplete': {}, 'value': {}},
547
- '[type=text]': {
548
- 'autocomplete': {},
549
- 'dirName': {},
550
- 'list': {},
551
- 'maxLength': {},
552
- 'minLength': {},
553
- 'pattern': {},
554
- 'placeholder': {},
555
- 'readOnly': {},
556
- 'required': {},
557
- 'size': {},
558
- 'value': {},
559
- 'selectionStart': {},
560
- 'selectionEnd': {},
561
- 'selectionDirection': {},
535
+ 'list': {
536
+ 'rules': [
537
+ {'when': 'type', 'is': 'text'},
538
+ {'when': 'type', 'is': 'search'},
539
+ {'when': 'type', 'is': 'url'},
540
+ {'when': 'type', 'is': 'tel'},
541
+ {'when': 'type', 'is': 'email'},
542
+ {'when': 'type', 'is': 'date'},
543
+ {'when': 'type', 'is': 'month'},
544
+ {'when': 'type', 'is': 'week'},
545
+ {'when': 'type', 'is': 'time'},
546
+ {'when': 'type', 'is': 'datetime-local'},
547
+ {'when': 'type', 'is': 'number'},
548
+ {'when': 'type', 'is': 'range'},
549
+ {'when': 'type', 'is': 'color'},
550
+ ],
562
551
  },
563
- '[type=search]': {
564
- 'autocomplete': {},
565
- 'dirName': {},
566
- 'list': {},
567
- 'maxLength': {},
568
- 'minLength': {},
569
- 'pattern': {},
570
- 'placeholder': {},
571
- 'readOnly': {},
572
- 'required': {},
573
- 'size': {},
574
- 'value': {},
575
- 'selectionStart': {},
576
- 'selectionEnd': {},
577
- 'selectionDirection': {},
552
+ 'max': {
553
+ 'rules': [
554
+ {'when': 'type', 'is': 'date'},
555
+ {'when': 'type', 'is': 'month'},
556
+ {'when': 'type', 'is': 'week'},
557
+ {'when': 'type', 'is': 'time'},
558
+ {'when': 'type', 'is': 'datetime-local'},
559
+ {'when': 'type', 'is': 'number'},
560
+ {'when': 'type', 'is': 'range'},
561
+ ],
578
562
  },
579
- '[type=url]': {
580
- 'autocomplete': {},
581
- 'list': {},
582
- 'maxLength': {},
583
- 'minLength': {},
584
- 'pattern': {},
585
- 'placeholder': {},
586
- 'readOnly': {},
587
- 'required': {},
588
- 'size': {},
589
- 'value': {},
590
- 'selectionStart': {},
591
- 'selectionEnd': {},
592
- 'selectionDirection': {},
563
+ 'maxLength': {
564
+ 'rules': [
565
+ {'when': 'type', 'is': 'text'},
566
+ {'when': 'type', 'is': 'search'},
567
+ {'when': 'type', 'is': 'url'},
568
+ {'when': 'type', 'is': 'tel'},
569
+ {'when': 'type', 'is': 'email'},
570
+ {'when': 'type', 'is': 'password'},
571
+ ],
593
572
  },
594
- '[type=tel]': {
595
- 'autocomplete': {},
596
- 'list': {},
597
- 'maxLength': {},
598
- 'minLength': {},
599
- 'pattern': {},
600
- 'placeholder': {},
601
- 'readOnly': {},
602
- 'required': {},
603
- 'size': {},
604
- 'value': {},
605
- 'selectionStart': {},
606
- 'selectionEnd': {},
607
- 'selectionDirection': {},
573
+ 'min': {
574
+ 'rules': [
575
+ {'when': 'type', 'is': 'date'},
576
+ {'when': 'type', 'is': 'month'},
577
+ {'when': 'type', 'is': 'week'},
578
+ {'when': 'type', 'is': 'time'},
579
+ {'when': 'type', 'is': 'datetime-local'},
580
+ {'when': 'type', 'is': 'number'},
581
+ {'when': 'type', 'is': 'range'},
582
+ ],
608
583
  },
609
- '[type=email]': {
610
- 'autocomplete': {},
611
- 'list': {},
612
- 'maxLength': {},
613
- 'minLength': {},
614
- 'multiple': {},
615
- 'pattern': {},
616
- 'placeholder': {},
617
- 'readOnly': {},
618
- 'required': {},
619
- 'size': {},
620
- 'value': {},
584
+ 'minLength': {
585
+ 'rules': [
586
+ {'when': 'type', 'is': 'text'},
587
+ {'when': 'type', 'is': 'search'},
588
+ {'when': 'type', 'is': 'url'},
589
+ {'when': 'type', 'is': 'tel'},
590
+ {'when': 'type', 'is': 'email'},
591
+ {'when': 'type', 'is': 'password'},
592
+ ],
621
593
  },
622
- '[type=password]': {
623
- 'autocomplete': {},
624
- 'maxLength': {},
625
- 'minLength': {},
626
- 'pattern': {},
627
- 'placeholder': {},
628
- 'readOnly': {},
629
- 'required': {},
630
- 'size': {},
631
- 'value': {},
632
- 'selectionStart': {},
633
- 'selectionEnd': {},
634
- 'selectionDirection': {},
594
+ 'multiple': {'rules': [{'when': 'type', 'is': 'email'}, {'when': 'type', 'is': 'file'}]},
595
+ 'name': {},
596
+ 'pattern': {
597
+ 'rules': [
598
+ {'when': 'type', 'is': 'text'},
599
+ {'when': 'type', 'is': 'search'},
600
+ {'when': 'type', 'is': 'url'},
601
+ {'when': 'type', 'is': 'tel'},
602
+ {'when': 'type', 'is': 'email'},
603
+ {'when': 'type', 'is': 'password'},
604
+ ],
635
605
  },
636
- '[type=date]': {
637
- 'autocomplete': {},
638
- 'list': {},
639
- 'max': {},
640
- 'min': {},
641
- 'readOnly': {},
642
- 'required': {},
643
- 'step': {},
644
- 'value': {},
645
- 'valueAsDate': {},
646
- 'valueAsNumber': {},
606
+ 'placeholder': {
607
+ 'rules': [
608
+ {'when': 'type', 'is': 'text'},
609
+ {'when': 'type', 'is': 'search'},
610
+ {'when': 'type', 'is': 'url'},
611
+ {'when': 'type', 'is': 'tel'},
612
+ {'when': 'type', 'is': 'email'},
613
+ {'when': 'type', 'is': 'password'},
614
+ {'when': 'type', 'is': 'number'},
615
+ ],
647
616
  },
648
- '[type=month]': {
649
- 'autocomplete': {},
650
- 'list': {},
651
- 'max': {},
652
- 'min': {},
653
- 'readOnly': {},
654
- 'required': {},
655
- 'step': {},
656
- 'value': {},
657
- 'valueAsDate': {},
658
- 'valueAsNumber': {},
617
+ 'readOnly': {
618
+ 'rules': [
619
+ {'when': 'type', 'is': 'text'},
620
+ {'when': 'type', 'is': 'search'},
621
+ {'when': 'type', 'is': 'url'},
622
+ {'when': 'type', 'is': 'tel'},
623
+ {'when': 'type', 'is': 'email'},
624
+ {'when': 'type', 'is': 'password'},
625
+ {'when': 'type', 'is': 'date'},
626
+ {'when': 'type', 'is': 'month'},
627
+ {'when': 'type', 'is': 'week'},
628
+ {'when': 'type', 'is': 'time'},
629
+ {'when': 'type', 'is': 'datetime-local'},
630
+ {'when': 'type', 'is': 'number'},
631
+ ],
659
632
  },
660
- '[type=week]': {
661
- 'autocomplete': {},
662
- 'list': {},
663
- 'max': {},
664
- 'min': {},
665
- 'readOnly': {},
666
- 'required': {},
667
- 'step': {},
668
- 'value': {},
669
- 'valueAsDate': {},
670
- 'valueAsNumber': {},
633
+ 'required': {
634
+ 'rules': [
635
+ {'when': 'type', 'is': 'text'},
636
+ {'when': 'type', 'is': 'search'},
637
+ {'when': 'type', 'is': 'url'},
638
+ {'when': 'type', 'is': 'tel'},
639
+ {'when': 'type', 'is': 'email'},
640
+ {'when': 'type', 'is': 'password'},
641
+ {'when': 'type', 'is': 'date'},
642
+ {'when': 'type', 'is': 'month'},
643
+ {'when': 'type', 'is': 'week'},
644
+ {'when': 'type', 'is': 'time'},
645
+ {'when': 'type', 'is': 'datetime-local'},
646
+ {'when': 'type', 'is': 'number'},
647
+ {'when': 'type', 'is': 'checkbox'},
648
+ {'when': 'type', 'is': 'radio'},
649
+ {'when': 'type', 'is': 'file'},
650
+ ],
671
651
  },
672
- '[type=time]': {
673
- 'autocomplete': {},
674
- 'list': {},
675
- 'max': {},
676
- 'min': {},
677
- 'readOnly': {},
678
- 'required': {},
679
- 'step': {},
680
- 'value': {},
681
- 'valueAsDate': {},
682
- 'valueAsNumber': {},
652
+ 'size': {
653
+ 'rules': [
654
+ {'when': 'type', 'is': 'text'},
655
+ {'when': 'type', 'is': 'search'},
656
+ {'when': 'type', 'is': 'url'},
657
+ {'when': 'type', 'is': 'tel'},
658
+ {'when': 'type', 'is': 'email'},
659
+ {'when': 'type', 'is': 'password'},
660
+ ],
683
661
  },
684
- '[type=datetime-local]': {
685
- 'autocomplete': {},
686
- 'list': {},
687
- 'max': {},
688
- 'min': {},
689
- 'readOnly': {},
690
- 'required': {},
691
- 'step': {},
692
- 'value': {},
693
- 'valueAsNumber': {},
662
+ 'src': {'rules': [{'when': 'type', 'is': 'image'}]},
663
+ 'step': {
664
+ 'rules': [
665
+ {'when': 'type', 'is': 'date'},
666
+ {'when': 'type', 'is': 'month'},
667
+ {'when': 'type', 'is': 'week'},
668
+ {'when': 'type', 'is': 'time'},
669
+ {'when': 'type', 'is': 'datetime-local'},
670
+ {'when': 'type', 'is': 'number'},
671
+ {'when': 'type', 'is': 'range'},
672
+ ],
694
673
  },
695
- '[type=number]': {
696
- 'autocomplete': {},
697
- 'list': {},
698
- 'max': {},
699
- 'min': {},
700
- 'placeholder': {},
701
- 'readOnly': {},
702
- 'required': {},
703
- 'step': {},
704
- 'value': {},
705
- 'valueAsNumber': {},
674
+ 'type': {},
675
+ 'defaultValue': {},
676
+ 'value': {
677
+ 'rules': [
678
+ {'when': 'type', 'is': 'hidden'}, {'when': 'type', 'is': 'text'}, {'when': 'type', 'is': 'search'},
679
+ {'when': 'type', 'is': 'url'}, {'when': 'type', 'is': 'tel'}, {'when': 'type', 'is': 'email'},
680
+ {'when': 'type', 'is': 'password'}, {'when': 'type', 'is': 'date'}, {'when': 'type', 'is': 'month'},
681
+ {'when': 'type', 'is': 'week'}, {'when': 'type', 'is': 'time'}, {'when': 'type', 'is': 'datetime-local'},
682
+ {'when': 'type', 'is': 'number'}, {'when': 'type', 'is': 'range'}, {'when': 'type', 'is': 'color'},
683
+ {'when': 'type', 'is': 'checkbox'}, {'when': 'type', 'is': 'radio'}, {'when': 'type', 'is': 'file'},
684
+ {'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}, {'when': 'type', 'is': 'reset'},
685
+ {'when': 'type', 'is': 'button'},
686
+ ],
687
+ },
688
+ 'valueAsDate': {
689
+ 'rules': [
690
+ {'when': 'type', 'is': 'date'},
691
+ {'when': 'type', 'is': 'month'},
692
+ {'when': 'type', 'is': 'week'},
693
+ {'when': 'type', 'is': 'time'},
694
+ ],
695
+ },
696
+ 'valueAsNumber': {
697
+ 'rules': [
698
+ {'when': 'type', 'is': 'date'},
699
+ {'when': 'type', 'is': 'month'},
700
+ {'when': 'type', 'is': 'week'},
701
+ {'when': 'type', 'is': 'time'},
702
+ {'when': 'type', 'is': 'datetime-local'},
703
+ {'when': 'type', 'is': 'number'},
704
+ {'when': 'type', 'is': 'range'},
705
+ ],
706
+ },
707
+ 'width': {'rules': [{'when': 'type', 'is': 'image'}]},
708
+ 'willValidate': {},
709
+ 'validity': {},
710
+ 'validationMessage': {},
711
+ 'labels': {},
712
+ 'selectionStart': {
713
+ 'rules': [
714
+ {'when': 'type', 'is': 'text'},
715
+ {'when': 'type', 'is': 'search'},
716
+ {'when': 'type', 'is': 'url'},
717
+ {'when': 'type', 'is': 'tel'},
718
+ {'when': 'type', 'is': 'password'},
719
+ ],
720
+ },
721
+ 'selectionEnd': {
722
+ 'rules': [
723
+ {'when': 'type', 'is': 'text'},
724
+ {'when': 'type', 'is': 'search'},
725
+ {'when': 'type', 'is': 'url'},
726
+ {'when': 'type', 'is': 'tel'},
727
+ {'when': 'type', 'is': 'password'},
728
+ ],
706
729
  },
707
- '[type=range]':
708
- {'autocomplete': {}, 'list': {}, 'max': {}, 'min': {}, 'step': {}, 'value': {}, 'valueAsNumber': {}},
709
- '[type=color]': {'autocomplete': {}, 'list': {}, 'value': {}},
710
- '[type=checkbox]': {'checked': {}, 'required': {}, 'value': {}},
711
- '[type=radio]': {'checked': {}, 'required': {}, 'value': {}},
712
- '[type=file]': {'accept': {}, 'files': {}, 'multiple': {}, 'required': {}, 'value': {}},
713
- '[type=submit]':
714
- {'formAction': {}, 'formEnctype': {}, 'formMethod': {}, 'formNoValidate': {}, 'formTarget': {}, 'value': {}},
715
- '[type=image]': {
716
- 'alt': {},
717
- 'formAction': {},
718
- 'formEnctype': {},
719
- 'formMethod': {},
720
- 'formNoValidate': {},
721
- 'formTarget': {},
722
- 'height': {},
723
- 'src': {},
724
- 'value': {},
725
- 'width': {},
730
+ 'selectionDirection': {
731
+ 'rules': [
732
+ {'when': 'type', 'is': 'text'},
733
+ {'when': 'type', 'is': 'search'},
734
+ {'when': 'type', 'is': 'url'},
735
+ {'when': 'type', 'is': 'tel'},
736
+ {'when': 'type', 'is': 'password'},
737
+ ],
726
738
  },
727
- '[type=reset]': {'value': {}},
728
- '[type=button]': {'value': {}},
739
+ 'align': {},
740
+ 'useMap': {},
729
741
  },
742
+ 'rules': [
743
+ {'when': 'type', 'is': 'hidden'}, {'when': 'type', 'is': 'text'}, {'when': 'type', 'is': 'search'},
744
+ {'when': 'type', 'is': 'url'}, {'when': 'type', 'is': 'tel'}, {'when': 'type', 'is': 'email'},
745
+ {'when': 'type', 'is': 'password'}, {'when': 'type', 'is': 'date'}, {'when': 'type', 'is': 'month'},
746
+ {'when': 'type', 'is': 'week'}, {'when': 'type', 'is': 'time'}, {'when': 'type', 'is': 'datetime-local'},
747
+ {'when': 'type', 'is': 'number'}, {'when': 'type', 'is': 'range'}, {'when': 'type', 'is': 'color'},
748
+ {'when': 'type', 'is': 'checkbox'}, {'when': 'type', 'is': 'radio'}, {'when': 'type', 'is': 'file'},
749
+ {'when': 'type', 'is': 'submit'}, {'when': 'type', 'is': 'image'}, {'when': 'type', 'is': 'reset'},
750
+ {'when': 'type', 'is': 'button'},
751
+ ],
730
752
  },
731
753
  'HTMLButtonElement': {
732
754
  'inheritance': 'HTMLElement',
@@ -1453,7 +1475,7 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
1453
1475
  },
1454
1476
  'GetRootNodeOptions': {'props': {'composed': {'specs': 2}}},
1455
1477
  'XMLDocument': {'inheritance': 'Document'},
1456
- 'ElementCreationOptions': {'props': {'is': {'global': true, 'specs': 2}}},
1478
+ 'ElementCreationOptions': {'props': {'is': {'specs': 2, 'global': true}}},
1457
1479
  'ShadowRootInit': {'props': {'mode': {'specs': 2}, 'delegatesFocus': {'specs': 2}, 'slotAssignment': {'specs': 2}}},
1458
1480
  'NamedNodeMap': {'props': {'length': {'specs': 2}}},
1459
1481
  'Attr': {
@@ -1667,7 +1689,7 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
1667
1689
  'href': {'specs': 16},
1668
1690
  'ownerNode': {'specs': 16},
1669
1691
  'parentStyleSheet': {'specs': 16},
1670
- 'title': {'global': true, 'specs': 16},
1692
+ 'title': {'specs': 16, 'global': true},
1671
1693
  'media': {'specs': 16},
1672
1694
  'disabled': {'specs': 16},
1673
1695
  },
@@ -1689,21 +1711,21 @@ export const DOMPinnedProperties: DOMPinnedPropertiesDataset = {
1689
1711
  },
1690
1712
  },
1691
1713
  'CSSStyleRule':
1692
- {'inheritance': 'CSSRule', 'props': {'selectorText': {'specs': 16}, 'style': {'global': true, 'specs': 16}}},
1714
+ {'inheritance': 'CSSRule', 'props': {'selectorText': {'specs': 16}, 'style': {'specs': 16, 'global': true}}},
1693
1715
  'CSSImportRule':
1694
1716
  {'inheritance': 'CSSRule', 'props': {'href': {'specs': 16}, 'media': {'specs': 16}, 'styleSheet': {'specs': 16}}},
1695
1717
  'CSSGroupingRule': {'inheritance': 'CSSRule', 'props': {'cssRules': {'specs': 16}}},
1696
1718
  'CSSPageRule': {
1697
1719
  'inheritance': 'CSSGroupingRule',
1698
- 'props': {'selectorText': {'specs': 16}, 'style': {'global': true, 'specs': 16}},
1720
+ 'props': {'selectorText': {'specs': 16}, 'style': {'specs': 16, 'global': true}},
1699
1721
  },
1700
- 'CSSMarginRule': {'inheritance': 'CSSRule', 'props': {'name': {'specs': 16}, 'style': {'global': true, 'specs': 16}}},
1722
+ 'CSSMarginRule': {'inheritance': 'CSSRule', 'props': {'name': {'specs': 16}, 'style': {'specs': 16, 'global': true}}},
1701
1723
  'CSSNamespaceRule': {'inheritance': 'CSSRule', 'props': {'namespaceURI': {'specs': 16}, 'prefix': {'specs': 16}}},
1702
1724
  'CSSStyleDeclaration': {
1703
1725
  'props':
1704
1726
  {'cssText': {'specs': 16}, 'length': {'specs': 16}, 'parentRule': {'specs': 16}, 'cssFloat': {'specs': 16}},
1705
1727
  },
1706
- 'ElementCSSInlineStyle': {'props': {'style': {'global': true, 'specs': 16}}},
1728
+ 'ElementCSSInlineStyle': {'props': {'style': {'specs': 16, 'global': true}}},
1707
1729
  'SVGElement': {'includes': ['ElementCSSInlineStyle']},
1708
1730
  'MathMLElement': {'includes': ['ElementCSSInlineStyle']},
1709
1731
  'ARIAMixin': {
@@ -5,10 +5,13 @@
5
5
  import type * as Common from '../../core/common/common.js';
6
6
 
7
7
  import {NativeFunctions} from './NativeFunctions.js';
8
+ import * as DOMPinnedProperties from './DOMPinnedProperties.js';
8
9
 
9
10
  let javaScriptMetadataInstance: JavaScriptMetadataImpl;
10
11
 
11
12
  export class JavaScriptMetadataImpl implements Common.JavaScriptMetaData.JavaScriptMetaData {
13
+ static readonly domPinnedProperties = DOMPinnedProperties;
14
+
12
15
  private readonly uniqueFunctions: Map<string, string[][]>;
13
16
  private readonly receiverMethods: Map<string, Map<string, string[][]>>;
14
17
  static instance(opts: {
@@ -5475,6 +5475,10 @@ export const NativeFunctions = [
5475
5475
  name: 'ScrollTimeline',
5476
5476
  signatures: [['?options']]
5477
5477
  },
5478
+ {
5479
+ name: 'ViewTimeline',
5480
+ signatures: [['?options']]
5481
+ },
5478
5482
  {
5479
5483
  name: 'AccessibleNodeList',
5480
5484
  signatures: [['?nodes']]
@@ -7532,10 +7536,6 @@ export const NativeFunctions = [
7532
7536
  name: 'FetchEvent',
7533
7537
  signatures: [['type','eventInitDict']]
7534
7538
  },
7535
- {
7536
- name: 'addPerformanceEntry',
7537
- signatures: [['entry']]
7538
- },
7539
7539
  {
7540
7540
  name: 'InstallEvent',
7541
7541
  signatures: [['type','?eventInitDict']]
@@ -3,12 +3,15 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import './NativeFunctions.js';
6
+ import './DOMPinnedProperties.js';
6
7
  import './JavaScriptMetadata.js';
7
8
 
9
+ import * as DOMPinnedProperties from './DOMPinnedProperties.js';
8
10
  import * as JavaScriptMetadata from './JavaScriptMetadata.js';
9
11
  import * as NativeFunctions from './NativeFunctions.js';
10
12
 
11
13
  export {
14
+ DOMPinnedProperties,
12
15
  JavaScriptMetadata,
13
16
  NativeFunctions,
14
17
  };