devtools-protocol 0.0.1647336 → 0.0.1648091
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.
- package/json/browser_protocol.json +38 -0
- package/package.json +1 -1
- package/pdl/domains/CSS.pdl +14 -0
- package/types/protocol.d.ts +28 -0
|
@@ -4432,6 +4432,34 @@
|
|
|
4432
4432
|
}
|
|
4433
4433
|
]
|
|
4434
4434
|
},
|
|
4435
|
+
{
|
|
4436
|
+
"id": "SpecificityComponent",
|
|
4437
|
+
"description": "Contribution of an individual simple selector to specificity.",
|
|
4438
|
+
"experimental": true,
|
|
4439
|
+
"type": "object",
|
|
4440
|
+
"properties": [
|
|
4441
|
+
{
|
|
4442
|
+
"name": "text",
|
|
4443
|
+
"description": "The simple selector text that contributes to specificity.",
|
|
4444
|
+
"type": "string"
|
|
4445
|
+
},
|
|
4446
|
+
{
|
|
4447
|
+
"name": "a",
|
|
4448
|
+
"description": "The a component contribution.",
|
|
4449
|
+
"type": "integer"
|
|
4450
|
+
},
|
|
4451
|
+
{
|
|
4452
|
+
"name": "b",
|
|
4453
|
+
"description": "The b component contribution.",
|
|
4454
|
+
"type": "integer"
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
"name": "c",
|
|
4458
|
+
"description": "The c component contribution.",
|
|
4459
|
+
"type": "integer"
|
|
4460
|
+
}
|
|
4461
|
+
]
|
|
4462
|
+
},
|
|
4435
4463
|
{
|
|
4436
4464
|
"id": "Specificity",
|
|
4437
4465
|
"description": "Specificity:\nhttps://drafts.csswg.org/selectors/#specificity-rules",
|
|
@@ -4452,6 +4480,16 @@
|
|
|
4452
4480
|
"name": "c",
|
|
4453
4481
|
"description": "The c component, which represents the number of type selectors and pseudo-elements.",
|
|
4454
4482
|
"type": "integer"
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
"name": "components",
|
|
4486
|
+
"description": "Per-simple-selector contributions used to explain this specificity.",
|
|
4487
|
+
"experimental": true,
|
|
4488
|
+
"optional": true,
|
|
4489
|
+
"type": "array",
|
|
4490
|
+
"items": {
|
|
4491
|
+
"$ref": "SpecificityComponent"
|
|
4492
|
+
}
|
|
4455
4493
|
}
|
|
4456
4494
|
]
|
|
4457
4495
|
},
|
package/package.json
CHANGED
package/pdl/domains/CSS.pdl
CHANGED
|
@@ -82,6 +82,18 @@ experimental domain CSS
|
|
|
82
82
|
# Specificity of the selector.
|
|
83
83
|
experimental optional Specificity specificity
|
|
84
84
|
|
|
85
|
+
# Contribution of an individual simple selector to specificity.
|
|
86
|
+
experimental type SpecificityComponent extends object
|
|
87
|
+
properties
|
|
88
|
+
# The simple selector text that contributes to specificity.
|
|
89
|
+
string text
|
|
90
|
+
# The a component contribution.
|
|
91
|
+
integer a
|
|
92
|
+
# The b component contribution.
|
|
93
|
+
integer b
|
|
94
|
+
# The c component contribution.
|
|
95
|
+
integer c
|
|
96
|
+
|
|
85
97
|
# Specificity:
|
|
86
98
|
# https://drafts.csswg.org/selectors/#specificity-rules
|
|
87
99
|
experimental type Specificity extends object
|
|
@@ -93,6 +105,8 @@ experimental domain CSS
|
|
|
93
105
|
integer b
|
|
94
106
|
# The c component, which represents the number of type selectors and pseudo-elements.
|
|
95
107
|
integer c
|
|
108
|
+
# Per-simple-selector contributions used to explain this specificity.
|
|
109
|
+
experimental optional array of SpecificityComponent components
|
|
96
110
|
|
|
97
111
|
# Selector list data.
|
|
98
112
|
type SelectorList extends object
|
package/types/protocol.d.ts
CHANGED
|
@@ -5153,6 +5153,29 @@ export namespace Protocol {
|
|
|
5153
5153
|
specificity?: Specificity;
|
|
5154
5154
|
}
|
|
5155
5155
|
|
|
5156
|
+
/**
|
|
5157
|
+
* Contribution of an individual simple selector to specificity.
|
|
5158
|
+
* @experimental
|
|
5159
|
+
*/
|
|
5160
|
+
export interface SpecificityComponent {
|
|
5161
|
+
/**
|
|
5162
|
+
* The simple selector text that contributes to specificity.
|
|
5163
|
+
*/
|
|
5164
|
+
text: string;
|
|
5165
|
+
/**
|
|
5166
|
+
* The a component contribution.
|
|
5167
|
+
*/
|
|
5168
|
+
a: integer;
|
|
5169
|
+
/**
|
|
5170
|
+
* The b component contribution.
|
|
5171
|
+
*/
|
|
5172
|
+
b: integer;
|
|
5173
|
+
/**
|
|
5174
|
+
* The c component contribution.
|
|
5175
|
+
*/
|
|
5176
|
+
c: integer;
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5156
5179
|
/**
|
|
5157
5180
|
* Specificity:
|
|
5158
5181
|
* https://drafts.csswg.org/selectors/#specificity-rules
|
|
@@ -5172,6 +5195,11 @@ export namespace Protocol {
|
|
|
5172
5195
|
* The c component, which represents the number of type selectors and pseudo-elements.
|
|
5173
5196
|
*/
|
|
5174
5197
|
c: integer;
|
|
5198
|
+
/**
|
|
5199
|
+
* Per-simple-selector contributions used to explain this specificity.
|
|
5200
|
+
* @experimental
|
|
5201
|
+
*/
|
|
5202
|
+
components?: SpecificityComponent[];
|
|
5175
5203
|
}
|
|
5176
5204
|
|
|
5177
5205
|
/**
|