cdp-protocol 0.3.1

A Rust implementation of the Chrome DevTools Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
// Auto-generated from Chrome at version 146.0.7680.165 domain: CSS
#![allow(dead_code)]
use super::dom;
use super::page;
#[allow(unused_imports)]
use super::types::*;
#[allow(unused_imports)]
use derive_builder::Builder;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use serde_json::Value as Json;
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum StyleSheetOrigin {
    #[serde(rename = "injected")]
    Injected,
    #[serde(rename = "user-agent")]
    UserAgent,
    #[serde(rename = "inspector")]
    Inspector,
    #[serde(rename = "regular")]
    Regular,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CssRuleType {
    #[serde(rename = "MediaRule")]
    MediaRule,
    #[serde(rename = "SupportsRule")]
    SupportsRule,
    #[serde(rename = "ContainerRule")]
    ContainerRule,
    #[serde(rename = "LayerRule")]
    LayerRule,
    #[serde(rename = "ScopeRule")]
    ScopeRule,
    #[serde(rename = "StyleRule")]
    StyleRule,
    #[serde(rename = "StartingStyleRule")]
    StartingStyleRule,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CssMediaSource {
    #[serde(rename = "mediaRule")]
    MediaRule,
    #[serde(rename = "importRule")]
    ImportRule,
    #[serde(rename = "linkedSheet")]
    LinkedSheet,
    #[serde(rename = "inlineSheet")]
    InlineSheet,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CssAtRuleType {
    #[serde(rename = "font-face")]
    FontFace,
    #[serde(rename = "font-feature-values")]
    FontFeatureValues,
    #[serde(rename = "font-palette-values")]
    FontPaletteValues,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CssAtRuleSubsection {
    #[serde(rename = "swash")]
    Swash,
    #[serde(rename = "annotation")]
    Annotation,
    #[serde(rename = "ornaments")]
    Ornaments,
    #[serde(rename = "stylistic")]
    Stylistic,
    #[serde(rename = "styleset")]
    Styleset,
    #[serde(rename = "character-variant")]
    CharacterVariant,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS rule collection for a single pseudo style."]
pub struct PseudoElementMatches {
    #[doc = "Pseudo element type."]
    pub pseudo_type: dom::PseudoType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Pseudo element custom ident."]
    pub pseudo_identifier: Option<String>,
    #[doc = "Matches of CSS rules applicable to the pseudo style."]
    pub matches: Vec<RuleMatch>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS style coming from animations with the name of the animation."]
pub struct CssAnimationStyle {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The name of the animation."]
    pub name: Option<String>,
    #[doc = "The style coming from the animation."]
    pub style: CssStyle,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Inherited CSS rule collection from ancestor node."]
pub struct InheritedStyleEntry {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The ancestor node's inline style, if any, in the style inheritance chain."]
    pub inline_style: Option<CssStyle>,
    #[doc = "Matches of CSS rules matching the ancestor node in the style inheritance chain."]
    #[serde(rename = "matchedCSSRules")]
    pub matched_css_rules: Vec<RuleMatch>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Inherited CSS style collection for animated styles from ancestor node."]
pub struct InheritedAnimatedStyleEntry {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Styles coming from the animations of the ancestor, if any, in the style inheritance chain."]
    pub animation_styles: Option<Vec<CssAnimationStyle>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The style coming from the transitions of the ancestor, if any, in the style inheritance chain."]
    pub transitions_style: Option<CssStyle>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Inherited pseudo element matches from pseudos of an ancestor node."]
pub struct InheritedPseudoElementMatches {
    #[doc = "Matches of pseudo styles from the pseudos of an ancestor node."]
    pub pseudo_elements: Vec<PseudoElementMatches>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Match data for a CSS rule."]
pub struct RuleMatch {
    #[doc = "CSS rule in the match."]
    pub rule: CssRule,
    #[serde(default)]
    #[doc = "Matching selector indices in the rule's selectorList selectors (0-based)."]
    pub matching_selectors: Vec<JsUInt>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Data for a simple selector (these are delimited by commas in a selector list)."]
pub struct Value {
    #[serde(default)]
    #[doc = "Value text."]
    pub text: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Value range in the underlying resource (if available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Specificity of the selector."]
    pub specificity: Option<Specificity>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Specificity:\n <https://drafts.csswg.org/selectors/#specificity-rules>"]
pub struct Specificity {
    #[serde(default)]
    #[doc = "The a component, which represents the number of ID selectors."]
    pub a: JsUInt,
    #[serde(default)]
    #[doc = "The b component, which represents the number of class selectors, attributes selectors, and\n pseudo-classes."]
    pub b: JsUInt,
    #[serde(default)]
    #[doc = "The c component, which represents the number of type selectors and pseudo-elements."]
    pub c: JsUInt,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Selector list data."]
pub struct SelectorList {
    #[doc = "Selectors in the list."]
    pub selectors: Vec<Value>,
    #[serde(default)]
    #[doc = "Rule selector text."]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS stylesheet metainformation."]
pub struct CssStyleSheetHeader {
    #[doc = "The stylesheet identifier."]
    pub style_sheet_id: dom::StyleSheetId,
    #[doc = "Owner frame identifier."]
    pub frame_id: page::FrameId,
    #[serde(default)]
    #[doc = "Stylesheet resource URL. Empty if this is a constructed stylesheet created using\n new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported\n as a CSS module script)."]
    #[serde(rename = "sourceURL")]
    pub source_url: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "URL of source map associated with the stylesheet (if any)."]
    #[serde(rename = "sourceMapURL")]
    pub source_map_url: Option<String>,
    #[doc = "Stylesheet origin."]
    pub origin: StyleSheetOrigin,
    #[serde(default)]
    #[doc = "Stylesheet title."]
    pub title: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The backend id for the owner node of the stylesheet."]
    pub owner_node: Option<dom::BackendNodeId>,
    #[serde(default)]
    #[doc = "Denotes whether the stylesheet is disabled."]
    pub disabled: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the sourceURL field value comes from the sourceURL comment."]
    #[serde(rename = "hasSourceURL")]
    pub has_source_url: Option<bool>,
    #[serde(default)]
    #[doc = "Whether this stylesheet is created for STYLE tag by parser. This flag is not set for\n document.written STYLE tags."]
    pub is_inline: bool,
    #[serde(default)]
    #[doc = "Whether this stylesheet is mutable. Inline stylesheets become mutable\n after they have been modified via CSSOM API.\n `\\<link\\>` element's stylesheets become mutable only if DevTools modifies them.\n Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation."]
    pub is_mutable: bool,
    #[serde(default)]
    #[doc = "True if this stylesheet is created through new CSSStyleSheet() or imported as a\n CSS module script."]
    pub is_constructed: bool,
    #[serde(default)]
    #[doc = "Line offset of the stylesheet within the resource (zero based)."]
    pub start_line: JsFloat,
    #[serde(default)]
    #[doc = "Column offset of the stylesheet within the resource (zero based)."]
    pub start_column: JsFloat,
    #[serde(default)]
    #[doc = "Size of the content (in characters)."]
    pub length: JsFloat,
    #[serde(default)]
    #[doc = "Line offset of the end of the stylesheet within the resource (zero based)."]
    pub end_line: JsFloat,
    #[serde(default)]
    #[doc = "Column offset of the end of the stylesheet within the resource (zero based)."]
    pub end_column: JsFloat,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If the style sheet was loaded from a network resource, this indicates when the resource failed to load"]
    pub loading_failed: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS rule representation."]
pub struct CssRule {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "Rule selector data."]
    pub selector_list: SelectorList,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Array of selectors from ancestor style rules, sorted by distance from the current rule."]
    pub nesting_selectors: Option<Vec<String>>,
    #[doc = "Parent stylesheet's origin."]
    pub origin: StyleSheetOrigin,
    #[doc = "Associated style declaration."]
    pub style: CssStyle,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The BackendNodeId of the DOM node that constitutes the origin tree scope of this rule."]
    pub origin_tree_scope_node_id: Option<dom::BackendNodeId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Media list array (for rules involving media queries). The array enumerates media queries\n starting with the innermost one, going outwards."]
    pub media: Option<Vec<CssMedia>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Container query list array (for rules involving container queries).\n The array enumerates container queries starting with the innermost one, going outwards."]
    pub container_queries: Option<Vec<CssContainerQuery>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "@supports CSS at-rule array.\n The array enumerates @supports at-rules starting with the innermost one, going outwards."]
    pub supports: Option<Vec<CssSupports>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cascade layer array. Contains the layer hierarchy that this rule belongs to starting\n with the innermost layer and going outwards."]
    pub layers: Option<Vec<CssLayer>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "@scope CSS at-rule array.\n The array enumerates @scope at-rules starting with the innermost one, going outwards."]
    pub scopes: Option<Vec<CssScope>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The array keeps the types of ancestor CSSRules from the innermost going outwards."]
    pub rule_types: Option<Vec<CssRuleType>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "@starting-style CSS at-rule array.\n The array enumerates @starting-style at-rules starting with the innermost one, going outwards."]
    pub starting_styles: Option<Vec<CssStartingStyle>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS coverage information."]
pub struct RuleUsage {
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: dom::StyleSheetId,
    #[serde(default)]
    #[doc = "Offset of the start of the rule (including selector) from the beginning of the stylesheet."]
    pub start_offset: JsFloat,
    #[serde(default)]
    #[doc = "Offset of the end of the rule body from the beginning of the stylesheet."]
    pub end_offset: JsFloat,
    #[serde(default)]
    #[doc = "Indicates whether the rule was actually used by some element in the page."]
    pub used: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Text range within a resource. All numbers are zero-based."]
pub struct SourceRange {
    #[serde(default)]
    #[doc = "Start line of range."]
    pub start_line: JsUInt,
    #[serde(default)]
    #[doc = "Start column of range (inclusive)."]
    pub start_column: JsUInt,
    #[serde(default)]
    #[doc = "End line of range"]
    pub end_line: JsUInt,
    #[serde(default)]
    #[doc = "End column of range (exclusive)."]
    pub end_column: JsUInt,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct ShorthandEntry {
    #[serde(default)]
    #[doc = "Shorthand name."]
    pub name: String,
    #[serde(default)]
    #[doc = "Shorthand value."]
    pub value: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the property has \"!important\" annotation (implies `false` if absent)."]
    pub important: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct CssComputedStyleProperty {
    #[serde(default)]
    #[doc = "Computed style property name."]
    pub name: String,
    #[serde(default)]
    #[doc = "Computed style property value."]
    pub value: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct ComputedStyleExtraFields {
    #[serde(default)]
    #[doc = "Returns whether or not this node is being rendered with base appearance,\n which happens when it has its appearance property set to base/base-select\n or it is in the subtree of an element being rendered with base appearance."]
    pub is_appearance_base: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS style representation."]
pub struct CssStyle {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "CSS properties in the style."]
    pub css_properties: Vec<CssProperty>,
    #[doc = "Computed values for all shorthands found in the style."]
    pub shorthand_entries: Vec<ShorthandEntry>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Style declaration text (if available)."]
    pub css_text: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Style declaration range in the enclosing stylesheet (if available)."]
    pub range: Option<SourceRange>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS property declaration data."]
pub struct CssProperty {
    #[serde(default)]
    #[doc = "The property name."]
    pub name: String,
    #[serde(default)]
    #[doc = "The property value."]
    pub value: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the property has \"!important\" annotation (implies `false` if absent)."]
    pub important: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the property is implicit (implies `false` if absent)."]
    pub implicit: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The full property text as specified in the style."]
    pub text: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the property is understood by the browser (implies `true` if absent)."]
    pub parsed_ok: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether the property is disabled by the user (present for source-based properties only)."]
    pub disabled: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The entire property range in the enclosing style declaration (if available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Parsed longhand components of this property if it is a shorthand.\n This field will be empty if the given property is not a shorthand."]
    pub longhand_properties: Option<Vec<CssProperty>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS media rule descriptor."]
pub struct CssMedia {
    #[serde(default)]
    #[doc = "Media query text."]
    pub text: String,
    #[doc = "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if\n specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked\n stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline\n stylesheet's STYLE tag."]
    pub source: CssMediaSource,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "URL of the document containing the media query description."]
    #[serde(rename = "sourceURL")]
    pub source_url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The associated rule (@media or @import) header range in the enclosing stylesheet (if\n available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the stylesheet containing this object (if exists)."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Array of media queries."]
    pub media_list: Option<Vec<MediaQuery>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Media query descriptor."]
pub struct MediaQuery {
    #[doc = "Array of media query expressions."]
    pub expressions: Vec<MediaQueryExpression>,
    #[serde(default)]
    #[doc = "Whether the media query condition is satisfied."]
    pub active: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Media query expression descriptor."]
pub struct MediaQueryExpression {
    #[serde(default)]
    #[doc = "Media query expression value."]
    pub value: JsFloat,
    #[serde(default)]
    #[doc = "Media query expression units."]
    pub unit: String,
    #[serde(default)]
    #[doc = "Media query expression feature."]
    pub feature: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The associated range of the value text in the enclosing stylesheet (if available)."]
    pub value_range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Computed length of media query expression (if applicable)."]
    pub computed_length: Option<JsFloat>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS container query rule descriptor."]
pub struct CssContainerQuery {
    #[serde(default)]
    #[doc = "Container query text."]
    pub text: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The associated rule header range in the enclosing stylesheet (if\n available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the stylesheet containing this object (if exists)."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Optional name for the container."]
    pub name: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Optional physical axes queried for the container."]
    pub physical_axes: Option<dom::PhysicalAxes>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Optional logical axes queried for the container."]
    pub logical_axes: Option<dom::LogicalAxes>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "true if the query contains scroll-state() queries."]
    pub queries_scroll_state: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "true if the query contains anchored() queries."]
    pub queries_anchored: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS Supports at-rule descriptor."]
pub struct CssSupports {
    #[serde(default)]
    #[doc = "Supports rule text."]
    pub text: String,
    #[serde(default)]
    #[doc = "Whether the supports condition is satisfied."]
    pub active: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The associated rule header range in the enclosing stylesheet (if\n available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the stylesheet containing this object (if exists)."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS Scope at-rule descriptor."]
pub struct CssScope {
    #[serde(default)]
    #[doc = "Scope rule text."]
    pub text: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The associated rule header range in the enclosing stylesheet (if\n available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the stylesheet containing this object (if exists)."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS Layer at-rule descriptor."]
pub struct CssLayer {
    #[serde(default)]
    #[doc = "Layer name."]
    pub text: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The associated rule header range in the enclosing stylesheet (if\n available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the stylesheet containing this object (if exists)."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS Starting Style at-rule descriptor."]
pub struct CssStartingStyle {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The associated rule header range in the enclosing stylesheet (if\n available)."]
    pub range: Option<SourceRange>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Identifier of the stylesheet containing this object (if exists)."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS Layer data."]
pub struct CssLayerData {
    #[serde(default)]
    #[doc = "Layer name."]
    pub name: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Direct sub-layers"]
    pub sub_layers: Option<Vec<CssLayerData>>,
    #[serde(default)]
    #[doc = "Layer order. The order determines the order of the layer in the cascade order.\n A higher number has higher priority in the cascade order."]
    pub order: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about amount of glyphs that were rendered with given font."]
pub struct PlatformFontUsage {
    #[serde(default)]
    #[doc = "Font's family name reported by platform."]
    pub family_name: String,
    #[serde(default)]
    #[doc = "Font's PostScript name reported by platform."]
    pub post_script_name: String,
    #[serde(default)]
    #[doc = "Indicates if the font was downloaded or resolved locally."]
    pub is_custom_font: bool,
    #[serde(default)]
    #[doc = "Amount of glyphs that were rendered with this font."]
    pub glyph_count: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about font variation axes for variable fonts"]
pub struct FontVariationAxis {
    #[serde(default)]
    #[doc = "The font-variation-setting tag (a.k.a. \"axis tag\")."]
    pub tag: String,
    #[serde(default)]
    #[doc = "Human-readable variation name in the default language (normally, \"en\")."]
    pub name: String,
    #[serde(default)]
    #[doc = "The minimum value (inclusive) the font supports for this tag."]
    pub min_value: JsFloat,
    #[serde(default)]
    #[doc = "The maximum value (inclusive) the font supports for this tag."]
    pub max_value: JsFloat,
    #[serde(default)]
    #[doc = "The default value."]
    pub default_value: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Properties of a web font: <https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions>\n and additional information such as platformFontFamily and fontVariationAxes."]
pub struct FontFace {
    #[serde(default)]
    #[doc = "The font-family."]
    pub font_family: String,
    #[serde(default)]
    #[doc = "The font-style."]
    pub font_style: String,
    #[serde(default)]
    #[doc = "The font-variant."]
    pub font_variant: String,
    #[serde(default)]
    #[doc = "The font-weight."]
    pub font_weight: String,
    #[serde(default)]
    #[doc = "The font-stretch."]
    pub font_stretch: String,
    #[serde(default)]
    #[doc = "The font-display."]
    pub font_display: String,
    #[serde(default)]
    #[doc = "The unicode-range."]
    pub unicode_range: String,
    #[serde(default)]
    #[doc = "The src."]
    pub src: String,
    #[serde(default)]
    #[doc = "The resolved platform font family"]
    pub platform_font_family: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Available variation settings (a.k.a. \"axes\")."]
    pub font_variation_axes: Option<Vec<FontVariationAxis>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS try rule representation."]
pub struct CssTryRule {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "Parent stylesheet's origin."]
    pub origin: StyleSheetOrigin,
    #[doc = "Associated style declaration."]
    pub style: CssStyle,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS @position-try rule representation."]
pub struct CssPositionTryRule {
    #[doc = "The prelude dashed-ident name"]
    pub name: Value,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "Parent stylesheet's origin."]
    pub origin: StyleSheetOrigin,
    #[doc = "Associated style declaration."]
    pub style: CssStyle,
    #[serde(default)]
    pub active: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS keyframes rule representation."]
pub struct CssKeyframesRule {
    #[doc = "Animation name."]
    pub animation_name: Value,
    #[doc = "List of keyframes."]
    pub keyframes: Vec<CssKeyframeRule>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Representation of a custom property registration through CSS.registerProperty"]
pub struct CssPropertyRegistration {
    #[serde(default)]
    pub property_name: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub initial_value: Option<Value>,
    #[serde(default)]
    pub inherits: bool,
    #[serde(default)]
    pub syntax: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS generic @rule representation."]
pub struct CssAtRule {
    #[doc = "Type of at-rule."]
    pub r#type: CssAtRuleType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Subsection of font-feature-values, if this is a subsection."]
    pub subsection: Option<CssAtRuleSubsection>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "LINT.ThenChange(//third_party/blink/renderer/core/inspector/inspector_style_sheet.cc:FontVariantAlternatesFeatureType,//third_party/blink/renderer/core/inspector/inspector_css_agent.cc:FontVariantAlternatesFeatureType)\n Associated name, if applicable."]
    pub name: Option<Value>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "Parent stylesheet's origin."]
    pub origin: StyleSheetOrigin,
    #[doc = "Associated style declaration."]
    pub style: CssStyle,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS property at-rule representation."]
pub struct CssPropertyRule {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "Parent stylesheet's origin."]
    pub origin: StyleSheetOrigin,
    #[doc = "Associated property name."]
    pub property_name: Value,
    #[doc = "Associated style declaration."]
    pub style: CssStyle,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS function argument representation."]
pub struct CssFunctionParameter {
    #[serde(default)]
    #[doc = "The parameter name."]
    pub name: String,
    #[serde(default)]
    #[doc = "The parameter type."]
    pub r#type: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS function conditional block representation."]
pub struct CssFunctionConditionNode {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Media query for this conditional block. Only one type of condition should be set."]
    pub media: Option<CssMedia>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Container query for this conditional block. Only one type of condition should be set."]
    pub container_queries: Option<CssContainerQuery>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "@supports CSS at-rule condition. Only one type of condition should be set."]
    pub supports: Option<CssSupports>,
    #[doc = "Block body."]
    pub children: Vec<CssFunctionNode>,
    #[serde(default)]
    #[doc = "The condition text."]
    pub condition_text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Section of the body of a CSS function rule."]
pub struct CssFunctionNode {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A conditional block. If set, style should not be set."]
    pub condition: Option<CssFunctionConditionNode>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Values set by this node. If set, condition should not be set."]
    pub style: Option<CssStyle>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS function at-rule representation."]
pub struct CssFunctionRule {
    #[doc = "Name of the function."]
    pub name: Value,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "Parent stylesheet's origin."]
    pub origin: StyleSheetOrigin,
    #[doc = "List of parameters."]
    pub parameters: Vec<CssFunctionParameter>,
    #[doc = "Function body."]
    pub children: Vec<CssFunctionNode>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "CSS keyframe rule representation."]
pub struct CssKeyframeRule {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The css style sheet identifier (absent for user agent stylesheet and user-specified\n stylesheet rules) this rule came from."]
    pub style_sheet_id: Option<dom::StyleSheetId>,
    #[doc = "Parent stylesheet's origin."]
    pub origin: StyleSheetOrigin,
    #[doc = "Associated key text."]
    pub key_text: Value,
    #[doc = "Associated style declaration."]
    pub style: CssStyle,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A descriptor of operation to mutate style declaration text."]
pub struct StyleDeclarationEdit {
    #[doc = "The css style sheet identifier."]
    pub style_sheet_id: dom::StyleSheetId,
    #[doc = "The range of the style text in the enclosing stylesheet."]
    pub range: SourceRange,
    #[serde(default)]
    #[doc = "New style text."]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the\n position specified by `location`."]
pub struct AddRule {
    #[doc = "The css style sheet identifier where a new rule should be inserted."]
    pub style_sheet_id: dom::StyleSheetId,
    #[serde(default)]
    #[doc = "The text of a new rule."]
    pub rule_text: String,
    #[doc = "Text position of a new rule in the target style sheet."]
    pub location: SourceRange,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "NodeId for the DOM node in whose context custom property declarations for registered properties should be\n validated. If omitted, declarations in the new rule text can only be validated statically, which may produce\n incorrect results if the declaration contains a var() for example."]
    pub node_for_property_syntax_validation: Option<dom::NodeId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all class names from specified stylesheet."]
pub struct CollectClassNames {
    pub style_sheet_id: dom::StyleSheetId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Creates a new special \"via-inspector\" stylesheet in the frame with given `frameId`."]
pub struct CreateStyleSheet {
    #[doc = "Identifier of the frame where \"via-inspector\" stylesheet should be created."]
    pub frame_id: page::FrameId,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If true, creates a new stylesheet for every call. If false,\n returns a stylesheet previously created by a call with force=false\n for the frame's document if it exists or creates a new stylesheet\n (default: false)."]
    pub force: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct Disable(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct Enable(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Ensures that the given node will have specified pseudo-classes whenever its style is computed by\n the browser."]
pub struct ForcePseudoState {
    #[doc = "The element id for which to force the pseudo state."]
    pub node_id: dom::NodeId,
    #[serde(default)]
    #[doc = "Element pseudo classes to force when computing the element's style."]
    pub forced_pseudo_classes: Vec<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Ensures that the given node is in its starting-style state."]
pub struct ForceStartingStyle {
    #[doc = "The element id for which to force the starting-style state."]
    pub node_id: dom::NodeId,
    #[serde(default)]
    #[doc = "Boolean indicating if this is on or off."]
    pub forced: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct GetBackgroundColors {
    #[doc = "Id of the node to get background colors for."]
    pub node_id: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the computed style for a DOM node identified by `nodeId`."]
pub struct GetComputedStyleForNode {
    pub node_id: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Resolve the specified values in the context of the provided element.\n For example, a value of '1em' is evaluated according to the computed\n 'font-size' of the element and a value 'calc(1px + 2px)' will be\n resolved to '3px'.\n If the `propertyName` was specified the `values` are resolved as if\n they were property's declaration. If a value cannot be parsed according\n to the provided property syntax, the value is parsed using combined\n syntax as if null `propertyName` was provided. If the value cannot be\n resolved even then, return the provided value without any changes.\n Note: this function currently does not resolve CSS random() function,\n it returns unmodified random() function parts.`"]
pub struct ResolveValues {
    #[serde(default)]
    #[doc = "Cascade-dependent keywords (revert/revert-layer) do not work."]
    pub values: Vec<String>,
    #[doc = "Id of the node in whose context the expression is evaluated"]
    pub node_id: dom::NodeId,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Only longhands and custom property names are accepted."]
    pub property_name: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Pseudo element type, only works for pseudo elements that generate\n elements in the tree, such as ::before and ::after."]
    pub pseudo_type: Option<dom::PseudoType>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Pseudo element custom ident."]
    pub pseudo_identifier: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct GetLonghandProperties {
    #[serde(default)]
    pub shorthand_name: String,
    #[serde(default)]
    pub value: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\n attributes) for a DOM node identified by `nodeId`."]
pub struct GetInlineStylesForNode {
    pub node_id: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the styles coming from animations & transitions\n including the animation & transition styles coming from inheritance chain."]
pub struct GetAnimatedStylesForNode {
    pub node_id: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns requested styles for a DOM node identified by `nodeId`."]
pub struct GetMatchedStylesForNode {
    pub node_id: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct GetEnvironmentVariables(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct GetMediaQueries(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Requests information about platform fonts which we used to render child TextNodes in the given\n node."]
pub struct GetPlatformFontsForNode {
    pub node_id: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the current textual content for a stylesheet."]
pub struct GetStyleSheetText {
    pub style_sheet_id: dom::StyleSheetId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all layers parsed by the rendering engine for the tree scope of a node.\n Given a DOM element identified by nodeId, getLayersForNode returns the root\n layer for the nearest ancestor document or shadow root. The layer root contains\n the full layer tree for the tree scope and their ordering."]
pub struct GetLayersForNode {
    pub node_id: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Given a CSS selector text and a style sheet ID, getLocationForSelector\n returns an array of locations of the CSS selector in the style sheet."]
pub struct GetLocationForSelector {
    pub style_sheet_id: dom::StyleSheetId,
    #[serde(default)]
    pub selector_text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Starts tracking the given node for the computed style updates\n and whenever the computed style is updated for node, it queues\n a `computedStyleUpdated` event with throttling.\n There can only be 1 node tracked for computed style updates\n so passing a new node id removes tracking from the previous node.\n Pass `undefined` to disable tracking."]
pub struct TrackComputedStyleUpdatesForNode {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub node_id: Option<dom::NodeId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Starts tracking the given computed styles for updates. The specified array of properties\n replaces the one previously specified. Pass empty array to disable tracking.\n Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\n The changes to computed style properties are only tracked for nodes pushed to the front-end\n by the DOM agent. If no changes to the tracked properties occur after the node has been pushed\n to the front-end, no updates will be issued for the node."]
pub struct TrackComputedStyleUpdates {
    pub properties_to_track: Vec<CssComputedStyleProperty>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct TakeComputedStyleUpdates(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Find a rule with the given active property for the given node and set the new value for this\n property"]
pub struct SetEffectivePropertyValueForNode {
    #[doc = "The element id for which to set property."]
    pub node_id: dom::NodeId,
    #[serde(default)]
    pub property_name: String,
    #[serde(default)]
    pub value: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the property rule property name."]
pub struct SetPropertyRulePropertyName {
    pub style_sheet_id: dom::StyleSheetId,
    pub range: SourceRange,
    #[serde(default)]
    pub property_name: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the keyframe rule key text."]
pub struct SetKeyframeKey {
    pub style_sheet_id: dom::StyleSheetId,
    pub range: SourceRange,
    #[serde(default)]
    pub key_text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the rule selector."]
pub struct SetMediaText {
    pub style_sheet_id: dom::StyleSheetId,
    pub range: SourceRange,
    #[serde(default)]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the expression of a container query."]
pub struct SetContainerQueryText {
    pub style_sheet_id: dom::StyleSheetId,
    pub range: SourceRange,
    #[serde(default)]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the expression of a supports at-rule."]
pub struct SetSupportsText {
    pub style_sheet_id: dom::StyleSheetId,
    pub range: SourceRange,
    #[serde(default)]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the expression of a scope at-rule."]
pub struct SetScopeText {
    pub style_sheet_id: dom::StyleSheetId,
    pub range: SourceRange,
    #[serde(default)]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the rule selector."]
pub struct SetRuleSelector {
    pub style_sheet_id: dom::StyleSheetId,
    pub range: SourceRange,
    #[serde(default)]
    pub selector: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Sets the new stylesheet text."]
pub struct SetStyleSheetText {
    pub style_sheet_id: dom::StyleSheetId,
    #[serde(default)]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Applies specified style edits one after another in the given order."]
pub struct SetStyleTexts {
    pub edits: Vec<StyleDeclarationEdit>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "NodeId for the DOM node in whose context custom property declarations for registered properties should be\n validated. If omitted, declarations in the new rule text can only be validated statically, which may produce\n incorrect results if the declaration contains a var() for example."]
    pub node_for_property_syntax_validation: Option<dom::NodeId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct StartRuleUsageTracking(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct StopRuleUsageTracking(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct TakeCoverageDelta(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Enables/disables rendering of local CSS fonts (enabled by default)."]
pub struct SetLocalFontsEnabled {
    #[serde(default)]
    #[doc = "Whether rendering of local fonts is enabled."]
    pub enabled: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the\n position specified by `location`."]
pub struct AddRuleReturnObject {
    #[doc = "The newly created rule."]
    pub rule: CssRule,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all class names from specified stylesheet."]
pub struct CollectClassNamesReturnObject {
    #[doc = "Class name list."]
    pub class_names: Vec<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Creates a new special \"via-inspector\" stylesheet in the frame with given `frameId`."]
pub struct CreateStyleSheetReturnObject {
    #[doc = "Identifier of the created \"via-inspector\" stylesheet."]
    pub style_sheet_id: dom::StyleSheetId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Disables the CSS agent for the given page."]
pub struct DisableReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been\n enabled until the result of this command is received."]
pub struct EnableReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Ensures that the given node will have specified pseudo-classes whenever its style is computed by\n the browser."]
pub struct ForcePseudoStateReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Ensures that the given node is in its starting-style state."]
pub struct ForceStartingStyleReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
pub struct GetBackgroundColorsReturnObject {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The range of background colors behind this element, if it contains any visible text. If no\n visible text is present, this will be undefined. In the case of a flat background color,\n this will consist of simply that color. In the case of a gradient, this will consist of each\n of the color stops. For anything more complicated, this will be an empty array. Images will\n be ignored (as if the image had failed to load)."]
    pub background_colors: Option<Vec<String>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The computed font size for this node, as a CSS computed value string (e.g. '12px')."]
    pub computed_font_size: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or\n '100')."]
    pub computed_font_weight: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the computed style for a DOM node identified by `nodeId`."]
pub struct GetComputedStyleForNodeReturnObject {
    #[doc = "Computed style for the specified DOM node."]
    pub computed_style: Vec<CssComputedStyleProperty>,
    #[doc = "A list of non-standard \"extra fields\" which blink stores alongside each\n computed style."]
    pub extra_fields: ComputedStyleExtraFields,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Resolve the specified values in the context of the provided element.\n For example, a value of '1em' is evaluated according to the computed\n 'font-size' of the element and a value 'calc(1px + 2px)' will be\n resolved to '3px'.\n If the `propertyName` was specified the `values` are resolved as if\n they were property's declaration. If a value cannot be parsed according\n to the provided property syntax, the value is parsed using combined\n syntax as if null `propertyName` was provided. If the value cannot be\n resolved even then, return the provided value without any changes.\n Note: this function currently does not resolve CSS random() function,\n it returns unmodified random() function parts.`"]
pub struct ResolveValuesReturnObject {
    pub results: Vec<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
pub struct GetLonghandPropertiesReturnObject {
    pub longhand_properties: Vec<CssProperty>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\n attributes) for a DOM node identified by `nodeId`."]
pub struct GetInlineStylesForNodeReturnObject {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Inline style for the specified DOM node."]
    pub inline_style: Option<CssStyle>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."]
    pub attributes_style: Option<CssStyle>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the styles coming from animations & transitions\n including the animation & transition styles coming from inheritance chain."]
pub struct GetAnimatedStylesForNodeReturnObject {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Styles coming from animations."]
    pub animation_styles: Option<Vec<CssAnimationStyle>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Style coming from transitions."]
    pub transitions_style: Option<CssStyle>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Inherited style entries for animationsStyle and transitionsStyle from\n the inheritance chain of the element."]
    pub inherited: Option<Vec<InheritedAnimatedStyleEntry>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns requested styles for a DOM node identified by `nodeId`."]
pub struct GetMatchedStylesForNodeReturnObject {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Inline style for the specified DOM node."]
    pub inline_style: Option<CssStyle>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."]
    pub attributes_style: Option<CssStyle>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "CSS rules matching this node, from all applicable stylesheets."]
    #[serde(rename = "matchedCSSRules")]
    pub matched_css_rules: Option<Vec<RuleMatch>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Pseudo style matches for this node."]
    pub pseudo_elements: Option<Vec<PseudoElementMatches>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A chain of inherited styles (from the immediate node parent up to the DOM tree root)."]
    pub inherited: Option<Vec<InheritedStyleEntry>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root)."]
    pub inherited_pseudo_elements: Option<Vec<InheritedPseudoElementMatches>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A list of CSS keyframed animations matching this node."]
    pub css_keyframes_rules: Option<Vec<CssKeyframesRule>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A list of CSS @position-try rules matching this node, based on the position-try-fallbacks property."]
    pub css_position_try_rules: Option<Vec<CssPositionTryRule>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Index of the active fallback in the applied position-try-fallback property,\n will not be set if there is no active position-try fallback."]
    pub active_position_fallback_index: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A list of CSS at-property rules matching this node."]
    pub css_property_rules: Option<Vec<CssPropertyRule>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A list of CSS property registrations matching this node."]
    pub css_property_registrations: Option<Vec<CssPropertyRegistration>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A list of simple @rules matching this node or its pseudo-elements."]
    pub css_at_rules: Option<Vec<CssAtRule>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Id of the first parent element that does not have display: contents."]
    pub parent_layout_node_id: Option<dom::NodeId>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "A list of CSS at-function rules referenced by styles of this node."]
    pub css_function_rules: Option<Vec<CssFunctionRule>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the values of the default UA-defined environment variables used in env()"]
pub struct GetEnvironmentVariablesReturnObject {
    #[serde(default)]
    pub environment_variables: Json,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all media queries parsed by the rendering engine."]
pub struct GetMediaQueriesReturnObject {
    pub medias: Vec<CssMedia>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Requests information about platform fonts which we used to render child TextNodes in the given\n node."]
pub struct GetPlatformFontsForNodeReturnObject {
    #[doc = "Usage statistics for every employed platform font."]
    pub fonts: Vec<PlatformFontUsage>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the current textual content for a stylesheet."]
pub struct GetStyleSheetTextReturnObject {
    #[serde(default)]
    #[doc = "The stylesheet text."]
    pub text: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all layers parsed by the rendering engine for the tree scope of a node.\n Given a DOM element identified by nodeId, getLayersForNode returns the root\n layer for the nearest ancestor document or shadow root. The layer root contains\n the full layer tree for the tree scope and their ordering."]
pub struct GetLayersForNodeReturnObject {
    pub root_layer: CssLayerData,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Given a CSS selector text and a style sheet ID, getLocationForSelector\n returns an array of locations of the CSS selector in the style sheet."]
pub struct GetLocationForSelectorReturnObject {
    pub ranges: Vec<SourceRange>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Starts tracking the given node for the computed style updates\n and whenever the computed style is updated for node, it queues\n a `computedStyleUpdated` event with throttling.\n There can only be 1 node tracked for computed style updates\n so passing a new node id removes tracking from the previous node.\n Pass `undefined` to disable tracking."]
pub struct TrackComputedStyleUpdatesForNodeReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Starts tracking the given computed styles for updates. The specified array of properties\n replaces the one previously specified. Pass empty array to disable tracking.\n Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\n The changes to computed style properties are only tracked for nodes pushed to the front-end\n by the DOM agent. If no changes to the tracked properties occur after the node has been pushed\n to the front-end, no updates will be issued for the node."]
pub struct TrackComputedStyleUpdatesReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Polls the next batch of computed style updates."]
pub struct TakeComputedStyleUpdatesReturnObject {
    #[doc = "The list of node Ids that have their tracked computed styles updated."]
    pub node_ids: dom::NodeId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Find a rule with the given active property for the given node and set the new value for this\n property"]
pub struct SetEffectivePropertyValueForNodeReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the property rule property name."]
pub struct SetPropertyRulePropertyNameReturnObject {
    #[doc = "The resulting key text after modification."]
    pub property_name: Value,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the keyframe rule key text."]
pub struct SetKeyframeKeyReturnObject {
    #[doc = "The resulting key text after modification."]
    pub key_text: Value,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the rule selector."]
pub struct SetMediaTextReturnObject {
    #[doc = "The resulting CSS media rule after modification."]
    pub media: CssMedia,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the expression of a container query."]
pub struct SetContainerQueryTextReturnObject {
    #[doc = "The resulting CSS container query rule after modification."]
    pub container_query: CssContainerQuery,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the expression of a supports at-rule."]
pub struct SetSupportsTextReturnObject {
    #[doc = "The resulting CSS Supports rule after modification."]
    pub supports: CssSupports,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the expression of a scope at-rule."]
pub struct SetScopeTextReturnObject {
    #[doc = "The resulting CSS Scope rule after modification."]
    pub scope: CssScope,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Modifies the rule selector."]
pub struct SetRuleSelectorReturnObject {
    #[doc = "The resulting selector list after modification."]
    pub selector_list: SelectorList,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Sets the new stylesheet text."]
pub struct SetStyleSheetTextReturnObject {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "URL of source map associated with script (if any)."]
    #[serde(rename = "sourceMapURL")]
    pub source_map_url: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Applies specified style edits one after another in the given order."]
pub struct SetStyleTextsReturnObject {
    #[doc = "The resulting styles after modification."]
    pub styles: Vec<CssStyle>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Enables the selector recording."]
pub struct StartRuleUsageTrackingReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Stop tracking rule usage and return the list of rules that were used since last call to\n `takeCoverageDelta` (or since start of coverage instrumentation)."]
pub struct StopRuleUsageTrackingReturnObject {
    pub rule_usage: Vec<RuleUsage>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Obtain list of rules that became used since last call to this method (or since start of coverage\n instrumentation)."]
pub struct TakeCoverageDeltaReturnObject {
    pub coverage: Vec<RuleUsage>,
    #[serde(default)]
    #[doc = "Monotonically increasing time, in seconds."]
    pub timestamp: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Enables/disables rendering of local CSS fonts (enabled by default)."]
pub struct SetLocalFontsEnabledReturnObject(pub Option<Json>);
#[allow(deprecated)]
impl Method for AddRule {
    const NAME: &'static str = "CSS.addRule";
    type ReturnObject = AddRuleReturnObject;
}
#[allow(deprecated)]
impl Method for CollectClassNames {
    const NAME: &'static str = "CSS.collectClassNames";
    type ReturnObject = CollectClassNamesReturnObject;
}
#[allow(deprecated)]
impl Method for CreateStyleSheet {
    const NAME: &'static str = "CSS.createStyleSheet";
    type ReturnObject = CreateStyleSheetReturnObject;
}
#[allow(deprecated)]
impl Method for Disable {
    const NAME: &'static str = "CSS.disable";
    type ReturnObject = DisableReturnObject;
}
#[allow(deprecated)]
impl Method for Enable {
    const NAME: &'static str = "CSS.enable";
    type ReturnObject = EnableReturnObject;
}
#[allow(deprecated)]
impl Method for ForcePseudoState {
    const NAME: &'static str = "CSS.forcePseudoState";
    type ReturnObject = ForcePseudoStateReturnObject;
}
#[allow(deprecated)]
impl Method for ForceStartingStyle {
    const NAME: &'static str = "CSS.forceStartingStyle";
    type ReturnObject = ForceStartingStyleReturnObject;
}
#[allow(deprecated)]
impl Method for GetBackgroundColors {
    const NAME: &'static str = "CSS.getBackgroundColors";
    type ReturnObject = GetBackgroundColorsReturnObject;
}
#[allow(deprecated)]
impl Method for GetComputedStyleForNode {
    const NAME: &'static str = "CSS.getComputedStyleForNode";
    type ReturnObject = GetComputedStyleForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for ResolveValues {
    const NAME: &'static str = "CSS.resolveValues";
    type ReturnObject = ResolveValuesReturnObject;
}
#[allow(deprecated)]
impl Method for GetLonghandProperties {
    const NAME: &'static str = "CSS.getLonghandProperties";
    type ReturnObject = GetLonghandPropertiesReturnObject;
}
#[allow(deprecated)]
impl Method for GetInlineStylesForNode {
    const NAME: &'static str = "CSS.getInlineStylesForNode";
    type ReturnObject = GetInlineStylesForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for GetAnimatedStylesForNode {
    const NAME: &'static str = "CSS.getAnimatedStylesForNode";
    type ReturnObject = GetAnimatedStylesForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for GetMatchedStylesForNode {
    const NAME: &'static str = "CSS.getMatchedStylesForNode";
    type ReturnObject = GetMatchedStylesForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for GetEnvironmentVariables {
    const NAME: &'static str = "CSS.getEnvironmentVariables";
    type ReturnObject = GetEnvironmentVariablesReturnObject;
}
#[allow(deprecated)]
impl Method for GetMediaQueries {
    const NAME: &'static str = "CSS.getMediaQueries";
    type ReturnObject = GetMediaQueriesReturnObject;
}
#[allow(deprecated)]
impl Method for GetPlatformFontsForNode {
    const NAME: &'static str = "CSS.getPlatformFontsForNode";
    type ReturnObject = GetPlatformFontsForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for GetStyleSheetText {
    const NAME: &'static str = "CSS.getStyleSheetText";
    type ReturnObject = GetStyleSheetTextReturnObject;
}
#[allow(deprecated)]
impl Method for GetLayersForNode {
    const NAME: &'static str = "CSS.getLayersForNode";
    type ReturnObject = GetLayersForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for GetLocationForSelector {
    const NAME: &'static str = "CSS.getLocationForSelector";
    type ReturnObject = GetLocationForSelectorReturnObject;
}
#[allow(deprecated)]
impl Method for TrackComputedStyleUpdatesForNode {
    const NAME: &'static str = "CSS.trackComputedStyleUpdatesForNode";
    type ReturnObject = TrackComputedStyleUpdatesForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for TrackComputedStyleUpdates {
    const NAME: &'static str = "CSS.trackComputedStyleUpdates";
    type ReturnObject = TrackComputedStyleUpdatesReturnObject;
}
#[allow(deprecated)]
impl Method for TakeComputedStyleUpdates {
    const NAME: &'static str = "CSS.takeComputedStyleUpdates";
    type ReturnObject = TakeComputedStyleUpdatesReturnObject;
}
#[allow(deprecated)]
impl Method for SetEffectivePropertyValueForNode {
    const NAME: &'static str = "CSS.setEffectivePropertyValueForNode";
    type ReturnObject = SetEffectivePropertyValueForNodeReturnObject;
}
#[allow(deprecated)]
impl Method for SetPropertyRulePropertyName {
    const NAME: &'static str = "CSS.setPropertyRulePropertyName";
    type ReturnObject = SetPropertyRulePropertyNameReturnObject;
}
#[allow(deprecated)]
impl Method for SetKeyframeKey {
    const NAME: &'static str = "CSS.setKeyframeKey";
    type ReturnObject = SetKeyframeKeyReturnObject;
}
#[allow(deprecated)]
impl Method for SetMediaText {
    const NAME: &'static str = "CSS.setMediaText";
    type ReturnObject = SetMediaTextReturnObject;
}
#[allow(deprecated)]
impl Method for SetContainerQueryText {
    const NAME: &'static str = "CSS.setContainerQueryText";
    type ReturnObject = SetContainerQueryTextReturnObject;
}
#[allow(deprecated)]
impl Method for SetSupportsText {
    const NAME: &'static str = "CSS.setSupportsText";
    type ReturnObject = SetSupportsTextReturnObject;
}
#[allow(deprecated)]
impl Method for SetScopeText {
    const NAME: &'static str = "CSS.setScopeText";
    type ReturnObject = SetScopeTextReturnObject;
}
#[allow(deprecated)]
impl Method for SetRuleSelector {
    const NAME: &'static str = "CSS.setRuleSelector";
    type ReturnObject = SetRuleSelectorReturnObject;
}
#[allow(deprecated)]
impl Method for SetStyleSheetText {
    const NAME: &'static str = "CSS.setStyleSheetText";
    type ReturnObject = SetStyleSheetTextReturnObject;
}
#[allow(deprecated)]
impl Method for SetStyleTexts {
    const NAME: &'static str = "CSS.setStyleTexts";
    type ReturnObject = SetStyleTextsReturnObject;
}
#[allow(deprecated)]
impl Method for StartRuleUsageTracking {
    const NAME: &'static str = "CSS.startRuleUsageTracking";
    type ReturnObject = StartRuleUsageTrackingReturnObject;
}
#[allow(deprecated)]
impl Method for StopRuleUsageTracking {
    const NAME: &'static str = "CSS.stopRuleUsageTracking";
    type ReturnObject = StopRuleUsageTrackingReturnObject;
}
#[allow(deprecated)]
impl Method for TakeCoverageDelta {
    const NAME: &'static str = "CSS.takeCoverageDelta";
    type ReturnObject = TakeCoverageDeltaReturnObject;
}
#[allow(deprecated)]
impl Method for SetLocalFontsEnabled {
    const NAME: &'static str = "CSS.setLocalFontsEnabled";
    type ReturnObject = SetLocalFontsEnabledReturnObject;
}
#[allow(dead_code)]
pub mod events {
    #[allow(unused_imports)]
    use super::super::types::*;
    #[allow(unused_imports)]
    use derive_builder::Builder;
    #[allow(unused_imports)]
    use serde::{Deserialize, Serialize};
    #[allow(unused_imports)]
    use serde_json::Value as Json;
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct FontsUpdatedEvent {
        pub params: FontsUpdatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct FontsUpdatedEventParams {
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "The web font that has loaded."]
        pub font: Option<super::FontFace>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct MediaQueryResultChangedEvent(pub Option<Json>);
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct StyleSheetAddedEvent {
        pub params: StyleSheetAddedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct StyleSheetAddedEventParams {
        #[doc = "Added stylesheet metainfo."]
        pub header: super::CssStyleSheetHeader,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct StyleSheetChangedEvent {
        pub params: StyleSheetChangedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct StyleSheetChangedEventParams {
        pub style_sheet_id: super::super::dom::StyleSheetId,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct StyleSheetRemovedEvent {
        pub params: StyleSheetRemovedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct StyleSheetRemovedEventParams {
        #[doc = "Identifier of the removed stylesheet."]
        pub style_sheet_id: super::super::dom::StyleSheetId,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ComputedStyleUpdatedEvent {
        pub params: ComputedStyleUpdatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ComputedStyleUpdatedEventParams {
        #[doc = "The node id that has updated computed styles."]
        pub node_id: super::super::dom::NodeId,
    }
}