devtools-protocol 0.0.1146845 → 0.0.1147663
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 +30 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +14 -0
- package/types/protocol.d.ts +24 -0
@@ -2829,6 +2829,36 @@
|
|
2829
2829
|
"description": "Value range in the underlying resource (if available).",
|
2830
2830
|
"optional": true,
|
2831
2831
|
"$ref": "SourceRange"
|
2832
|
+
},
|
2833
|
+
{
|
2834
|
+
"name": "specificity",
|
2835
|
+
"description": "Specificity of the selector.",
|
2836
|
+
"experimental": true,
|
2837
|
+
"optional": true,
|
2838
|
+
"$ref": "Specificity"
|
2839
|
+
}
|
2840
|
+
]
|
2841
|
+
},
|
2842
|
+
{
|
2843
|
+
"id": "Specificity",
|
2844
|
+
"description": "Specificity:\nhttps://drafts.csswg.org/selectors/#specificity-rules",
|
2845
|
+
"experimental": true,
|
2846
|
+
"type": "object",
|
2847
|
+
"properties": [
|
2848
|
+
{
|
2849
|
+
"name": "a",
|
2850
|
+
"description": "The a component, which represents the number of ID selectors.",
|
2851
|
+
"type": "integer"
|
2852
|
+
},
|
2853
|
+
{
|
2854
|
+
"name": "b",
|
2855
|
+
"description": "The b component, which represents the number of class selectors, attributes selectors, and\npseudo-classes.",
|
2856
|
+
"type": "integer"
|
2857
|
+
},
|
2858
|
+
{
|
2859
|
+
"name": "c",
|
2860
|
+
"description": "The c component, which represents the number of type selectors and pseudo-elements.",
|
2861
|
+
"type": "integer"
|
2832
2862
|
}
|
2833
2863
|
]
|
2834
2864
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1382,6 +1382,20 @@ experimental domain CSS
|
|
1382
1382
|
string text
|
1383
1383
|
# Value range in the underlying resource (if available).
|
1384
1384
|
optional SourceRange range
|
1385
|
+
# Specificity of the selector.
|
1386
|
+
experimental optional Specificity specificity
|
1387
|
+
|
1388
|
+
# Specificity:
|
1389
|
+
# https://drafts.csswg.org/selectors/#specificity-rules
|
1390
|
+
experimental type Specificity extends object
|
1391
|
+
properties
|
1392
|
+
# The a component, which represents the number of ID selectors.
|
1393
|
+
integer a
|
1394
|
+
# The b component, which represents the number of class selectors, attributes selectors, and
|
1395
|
+
# pseudo-classes.
|
1396
|
+
integer b
|
1397
|
+
# The c component, which represents the number of type selectors and pseudo-elements.
|
1398
|
+
integer c
|
1385
1399
|
|
1386
1400
|
# Selector list data.
|
1387
1401
|
type SelectorList extends object
|
package/types/protocol.d.ts
CHANGED
@@ -4234,6 +4234,30 @@ export namespace Protocol {
|
|
4234
4234
|
* Value range in the underlying resource (if available).
|
4235
4235
|
*/
|
4236
4236
|
range?: SourceRange;
|
4237
|
+
/**
|
4238
|
+
* Specificity of the selector.
|
4239
|
+
*/
|
4240
|
+
specificity?: Specificity;
|
4241
|
+
}
|
4242
|
+
|
4243
|
+
/**
|
4244
|
+
* Specificity:
|
4245
|
+
* https://drafts.csswg.org/selectors/#specificity-rules
|
4246
|
+
*/
|
4247
|
+
export interface Specificity {
|
4248
|
+
/**
|
4249
|
+
* The a component, which represents the number of ID selectors.
|
4250
|
+
*/
|
4251
|
+
a: integer;
|
4252
|
+
/**
|
4253
|
+
* The b component, which represents the number of class selectors, attributes selectors, and
|
4254
|
+
* pseudo-classes.
|
4255
|
+
*/
|
4256
|
+
b: integer;
|
4257
|
+
/**
|
4258
|
+
* The c component, which represents the number of type selectors and pseudo-elements.
|
4259
|
+
*/
|
4260
|
+
c: integer;
|
4237
4261
|
}
|
4238
4262
|
|
4239
4263
|
/**
|