devtools-protocol 0.0.1165014 → 0.0.1165779

Sign up to get free protection for your applications and to get access to all the features.
@@ -3210,9 +3210,32 @@
3210
3210
  "items": {
3211
3211
  "$ref": "CSSScope"
3212
3212
  }
3213
+ },
3214
+ {
3215
+ "name": "ruleTypes",
3216
+ "description": "The array keeps the types of ancestor CSSRules from the innermost going outwards.",
3217
+ "experimental": true,
3218
+ "optional": true,
3219
+ "type": "array",
3220
+ "items": {
3221
+ "$ref": "CSSRuleType"
3222
+ }
3213
3223
  }
3214
3224
  ]
3215
3225
  },
3226
+ {
3227
+ "id": "CSSRuleType",
3228
+ "description": "Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.\nThis list only contains rule types that are collected during the ancestor rule collection.",
3229
+ "experimental": true,
3230
+ "type": "string",
3231
+ "enum": [
3232
+ "MediaRule",
3233
+ "SupportsRule",
3234
+ "ContainerRule",
3235
+ "LayerRule",
3236
+ "ScopeRule"
3237
+ ]
3238
+ },
3216
3239
  {
3217
3240
  "id": "RuleUsage",
3218
3241
  "description": "CSS coverage information.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1165014",
3
+ "version": "0.0.1165779",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1550,6 +1550,18 @@ experimental domain CSS
1550
1550
  # @scope CSS at-rule array.
1551
1551
  # The array enumerates @scope at-rules starting with the innermost one, going outwards.
1552
1552
  experimental optional array of CSSScope scopes
1553
+ # The array keeps the types of ancestor CSSRules from the innermost going outwards.
1554
+ experimental optional array of CSSRuleType ruleTypes
1555
+
1556
+ # Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
1557
+ # This list only contains rule types that are collected during the ancestor rule collection.
1558
+ experimental type CSSRuleType extends string
1559
+ enum
1560
+ MediaRule
1561
+ SupportsRule
1562
+ ContainerRule
1563
+ LayerRule
1564
+ ScopeRule
1553
1565
 
1554
1566
  # CSS coverage information.
1555
1567
  type RuleUsage extends object
@@ -4483,8 +4483,18 @@ export namespace Protocol {
4483
4483
  * The array enumerates @scope at-rules starting with the innermost one, going outwards.
4484
4484
  */
4485
4485
  scopes?: CSSScope[];
4486
+ /**
4487
+ * The array keeps the types of ancestor CSSRules from the innermost going outwards.
4488
+ */
4489
+ ruleTypes?: CSSRuleType[];
4486
4490
  }
4487
4491
 
4492
+ /**
4493
+ * Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
4494
+ * This list only contains rule types that are collected during the ancestor rule collection.
4495
+ */
4496
+ export type CSSRuleType = ('MediaRule' | 'SupportsRule' | 'ContainerRule' | 'LayerRule' | 'ScopeRule');
4497
+
4488
4498
  /**
4489
4499
  * CSS coverage information.
4490
4500
  */