vendor/github.com/go-rod/rod/lib/proto/css.go

1456 lines · 51557 bytes

   1// This file is generated by "./lib/proto/generate"
   2
   3package proto
   4
   5/*
   6
   7CSS
   8
   9This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles)
  10have an associated `id` used in subsequent operations on the related object. Each object type has
  11a specific `id` structure, and those are not interchangeable between objects of different kinds.
  12CSS objects can be loaded using the `get*ForNode()` calls (which accept a DOM node id). A client
  13can also keep track of stylesheets via the `styleSheetAdded`/`styleSheetRemoved` events and
  14subsequently load the required stylesheet contents using the `getStyleSheet[Text]()` methods.
  15
  16*/
  17
  18// CSSStyleSheetID ...
  19type CSSStyleSheetID string
  20
  21// CSSStyleSheetOrigin Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent
  22// stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via
  23// inspector" rules), "regular" for regular stylesheets.
  24type CSSStyleSheetOrigin string
  25
  26const (
  27	// CSSStyleSheetOriginInjected enum const.
  28	CSSStyleSheetOriginInjected CSSStyleSheetOrigin = "injected"
  29
  30	// CSSStyleSheetOriginUserAgent enum const.
  31	CSSStyleSheetOriginUserAgent CSSStyleSheetOrigin = "user-agent"
  32
  33	// CSSStyleSheetOriginInspector enum const.
  34	CSSStyleSheetOriginInspector CSSStyleSheetOrigin = "inspector"
  35
  36	// CSSStyleSheetOriginRegular enum const.
  37	CSSStyleSheetOriginRegular CSSStyleSheetOrigin = "regular"
  38)
  39
  40// CSSPseudoElementMatches CSS rule collection for a single pseudo style.
  41type CSSPseudoElementMatches struct {
  42	// PseudoType Pseudo element type.
  43	PseudoType DOMPseudoType `json:"pseudoType"`
  44
  45	// PseudoIdentifier (optional) Pseudo element custom ident.
  46	PseudoIdentifier string `json:"pseudoIdentifier,omitempty"`
  47
  48	// Matches of CSS rules applicable to the pseudo style.
  49	Matches []*CSSRuleMatch `json:"matches"`
  50}
  51
  52// CSSInheritedStyleEntry Inherited CSS rule collection from ancestor node.
  53type CSSInheritedStyleEntry struct {
  54	// InlineStyle (optional) The ancestor node's inline style, if any, in the style inheritance chain.
  55	InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"`
  56
  57	// MatchedCSSRules Matches of CSS rules matching the ancestor node in the style inheritance chain.
  58	MatchedCSSRules []*CSSRuleMatch `json:"matchedCSSRules"`
  59}
  60
  61// CSSInheritedPseudoElementMatches Inherited pseudo element matches from pseudos of an ancestor node.
  62type CSSInheritedPseudoElementMatches struct {
  63	// PseudoElements Matches of pseudo styles from the pseudos of an ancestor node.
  64	PseudoElements []*CSSPseudoElementMatches `json:"pseudoElements"`
  65}
  66
  67// CSSRuleMatch Match data for a CSS rule.
  68type CSSRuleMatch struct {
  69	// Rule CSS rule in the match.
  70	Rule *CSSCSSRule `json:"rule"`
  71
  72	// MatchingSelectors Matching selector indices in the rule's selectorList selectors (0-based).
  73	MatchingSelectors []int `json:"matchingSelectors"`
  74}
  75
  76// CSSValue Data for a simple selector (these are delimited by commas in a selector list).
  77type CSSValue struct {
  78	// Text Value text.
  79	Text string `json:"text"`
  80
  81	// Range (optional) Value range in the underlying resource (if available).
  82	Range *CSSSourceRange `json:"range,omitempty"`
  83
  84	// Specificity (experimental) (optional) Specificity of the selector.
  85	Specificity *CSSSpecificity `json:"specificity,omitempty"`
  86}
  87
  88// CSSSpecificity (experimental) Specificity:
  89// https://drafts.csswg.org/selectors/#specificity-rules
  90type CSSSpecificity struct {
  91	// A The a component, which represents the number of ID selectors.
  92	A int `json:"a"`
  93
  94	// B The b component, which represents the number of class selectors, attributes selectors, and
  95	// pseudo-classes.
  96	B int `json:"b"`
  97
  98	// C The c component, which represents the number of type selectors and pseudo-elements.
  99	C int `json:"c"`
 100}
 101
 102// CSSSelectorList Selector list data.
 103type CSSSelectorList struct {
 104	// Selectors in the list.
 105	Selectors []*CSSValue `json:"selectors"`
 106
 107	// Text Rule selector text.
 108	Text string `json:"text"`
 109}
 110
 111// CSSCSSStyleSheetHeader CSS stylesheet metainformation.
 112type CSSCSSStyleSheetHeader struct {
 113	// StyleSheetID The stylesheet identifier.
 114	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
 115
 116	// FrameID Owner frame identifier.
 117	FrameID PageFrameID `json:"frameId"`
 118
 119	// SourceURL Stylesheet resource URL. Empty if this is a constructed stylesheet created using
 120	// new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported
 121	// as a CSS module script).
 122	SourceURL string `json:"sourceURL"`
 123
 124	// SourceMapURL (optional) URL of source map associated with the stylesheet (if any).
 125	SourceMapURL string `json:"sourceMapURL,omitempty"`
 126
 127	// Origin Stylesheet origin.
 128	Origin CSSStyleSheetOrigin `json:"origin"`
 129
 130	// Title Stylesheet title.
 131	Title string `json:"title"`
 132
 133	// OwnerNode (optional) The backend id for the owner node of the stylesheet.
 134	OwnerNode DOMBackendNodeID `json:"ownerNode,omitempty"`
 135
 136	// Disabled Denotes whether the stylesheet is disabled.
 137	Disabled bool `json:"disabled"`
 138
 139	// HasSourceURL (optional) Whether the sourceURL field value comes from the sourceURL comment.
 140	HasSourceURL bool `json:"hasSourceURL,omitempty"`
 141
 142	// IsInline Whether this stylesheet is created for STYLE tag by parser. This flag is not set for
 143	// document.written STYLE tags.
 144	IsInline bool `json:"isInline"`
 145
 146	// IsMutable Whether this stylesheet is mutable. Inline stylesheets become mutable
 147	// after they have been modified via CSSOM API.
 148	// `<link>` element's stylesheets become mutable only if DevTools modifies them.
 149	// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
 150	IsMutable bool `json:"isMutable"`
 151
 152	// IsConstructed True if this stylesheet is created through new CSSStyleSheet() or imported as a
 153	// CSS module script.
 154	IsConstructed bool `json:"isConstructed"`
 155
 156	// StartLine Line offset of the stylesheet within the resource (zero based).
 157	StartLine float64 `json:"startLine"`
 158
 159	// StartColumn Column offset of the stylesheet within the resource (zero based).
 160	StartColumn float64 `json:"startColumn"`
 161
 162	// Length Size of the content (in characters).
 163	Length float64 `json:"length"`
 164
 165	// EndLine Line offset of the end of the stylesheet within the resource (zero based).
 166	EndLine float64 `json:"endLine"`
 167
 168	// EndColumn Column offset of the end of the stylesheet within the resource (zero based).
 169	EndColumn float64 `json:"endColumn"`
 170
 171	// LoadingFailed (experimental) (optional) If the style sheet was loaded from a network resource, this indicates when the resource failed to load
 172	LoadingFailed bool `json:"loadingFailed,omitempty"`
 173}
 174
 175// CSSCSSRule CSS rule representation.
 176type CSSCSSRule struct {
 177	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
 178	// stylesheet rules) this rule came from.
 179	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 180
 181	// SelectorList Rule selector data.
 182	SelectorList *CSSSelectorList `json:"selectorList"`
 183
 184	// NestingSelectors (experimental) (optional) Array of selectors from ancestor style rules, sorted by distance from the current rule.
 185	NestingSelectors []string `json:"nestingSelectors,omitempty"`
 186
 187	// Origin Parent stylesheet's origin.
 188	Origin CSSStyleSheetOrigin `json:"origin"`
 189
 190	// Style Associated style declaration.
 191	Style *CSSCSSStyle `json:"style"`
 192
 193	// Media (optional) Media list array (for rules involving media queries). The array enumerates media queries
 194	// starting with the innermost one, going outwards.
 195	Media []*CSSCSSMedia `json:"media,omitempty"`
 196
 197	// ContainerQueries (experimental) (optional) Container query list array (for rules involving container queries).
 198	// The array enumerates container queries starting with the innermost one, going outwards.
 199	ContainerQueries []*CSSCSSContainerQuery `json:"containerQueries,omitempty"`
 200
 201	// Supports (experimental) (optional) @supports CSS at-rule array.
 202	// The array enumerates @supports at-rules starting with the innermost one, going outwards.
 203	Supports []*CSSCSSSupports `json:"supports,omitempty"`
 204
 205	// Layers (experimental) (optional) Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
 206	// with the innermost layer and going outwards.
 207	Layers []*CSSCSSLayer `json:"layers,omitempty"`
 208
 209	// Scopes (experimental) (optional) @scope CSS at-rule array.
 210	// The array enumerates @scope at-rules starting with the innermost one, going outwards.
 211	Scopes []*CSSCSSScope `json:"scopes,omitempty"`
 212
 213	// RuleTypes (experimental) (optional) The array keeps the types of ancestor CSSRules from the innermost going outwards.
 214	RuleTypes []CSSCSSRuleType `json:"ruleTypes,omitempty"`
 215}
 216
 217// CSSCSSRuleType (experimental) Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
 218// This list only contains rule types that are collected during the ancestor rule collection.
 219type CSSCSSRuleType string
 220
 221const (
 222	// CSSCSSRuleTypeMediaRule enum const.
 223	CSSCSSRuleTypeMediaRule CSSCSSRuleType = "MediaRule"
 224
 225	// CSSCSSRuleTypeSupportsRule enum const.
 226	CSSCSSRuleTypeSupportsRule CSSCSSRuleType = "SupportsRule"
 227
 228	// CSSCSSRuleTypeContainerRule enum const.
 229	CSSCSSRuleTypeContainerRule CSSCSSRuleType = "ContainerRule"
 230
 231	// CSSCSSRuleTypeLayerRule enum const.
 232	CSSCSSRuleTypeLayerRule CSSCSSRuleType = "LayerRule"
 233
 234	// CSSCSSRuleTypeScopeRule enum const.
 235	CSSCSSRuleTypeScopeRule CSSCSSRuleType = "ScopeRule"
 236
 237	// CSSCSSRuleTypeStyleRule enum const.
 238	CSSCSSRuleTypeStyleRule CSSCSSRuleType = "StyleRule"
 239)
 240
 241// CSSRuleUsage CSS coverage information.
 242type CSSRuleUsage struct {
 243	// StyleSheetID The css style sheet identifier (absent for user agent stylesheet and user-specified
 244	// stylesheet rules) this rule came from.
 245	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
 246
 247	// StartOffset Offset of the start of the rule (including selector) from the beginning of the stylesheet.
 248	StartOffset float64 `json:"startOffset"`
 249
 250	// EndOffset Offset of the end of the rule body from the beginning of the stylesheet.
 251	EndOffset float64 `json:"endOffset"`
 252
 253	// Used Indicates whether the rule was actually used by some element in the page.
 254	Used bool `json:"used"`
 255}
 256
 257// CSSSourceRange Text range within a resource. All numbers are zero-based.
 258type CSSSourceRange struct {
 259	// StartLine Start line of range.
 260	StartLine int `json:"startLine"`
 261
 262	// StartColumn Start column of range (inclusive).
 263	StartColumn int `json:"startColumn"`
 264
 265	// EndLine End line of range
 266	EndLine int `json:"endLine"`
 267
 268	// EndColumn End column of range (exclusive).
 269	EndColumn int `json:"endColumn"`
 270}
 271
 272// CSSShorthandEntry ...
 273type CSSShorthandEntry struct {
 274	// Name Shorthand name.
 275	Name string `json:"name"`
 276
 277	// Value Shorthand value.
 278	Value string `json:"value"`
 279
 280	// Important (optional) Whether the property has "!important" annotation (implies `false` if absent).
 281	Important bool `json:"important,omitempty"`
 282}
 283
 284// CSSCSSComputedStyleProperty ...
 285type CSSCSSComputedStyleProperty struct {
 286	// Name Computed style property name.
 287	Name string `json:"name"`
 288
 289	// Value Computed style property value.
 290	Value string `json:"value"`
 291}
 292
 293// CSSCSSStyle CSS style representation.
 294type CSSCSSStyle struct {
 295	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
 296	// stylesheet rules) this rule came from.
 297	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 298
 299	// CSSProperties CSS properties in the style.
 300	CSSProperties []*CSSCSSProperty `json:"cssProperties"`
 301
 302	// ShorthandEntries Computed values for all shorthands found in the style.
 303	ShorthandEntries []*CSSShorthandEntry `json:"shorthandEntries"`
 304
 305	// CSSText (optional) Style declaration text (if available).
 306	CSSText string `json:"cssText,omitempty"`
 307
 308	// Range (optional) Style declaration range in the enclosing stylesheet (if available).
 309	Range *CSSSourceRange `json:"range,omitempty"`
 310}
 311
 312// CSSCSSProperty CSS property declaration data.
 313type CSSCSSProperty struct {
 314	// Name The property name.
 315	Name string `json:"name"`
 316
 317	// Value The property value.
 318	Value string `json:"value"`
 319
 320	// Important (optional) Whether the property has "!important" annotation (implies `false` if absent).
 321	Important bool `json:"important,omitempty"`
 322
 323	// Implicit (optional) Whether the property is implicit (implies `false` if absent).
 324	Implicit bool `json:"implicit,omitempty"`
 325
 326	// Text (optional) The full property text as specified in the style.
 327	Text string `json:"text,omitempty"`
 328
 329	// ParsedOk (optional) Whether the property is understood by the browser (implies `true` if absent).
 330	ParsedOk bool `json:"parsedOk,omitempty"`
 331
 332	// Disabled (optional) Whether the property is disabled by the user (present for source-based properties only).
 333	Disabled bool `json:"disabled,omitempty"`
 334
 335	// Range (optional) The entire property range in the enclosing style declaration (if available).
 336	Range *CSSSourceRange `json:"range,omitempty"`
 337
 338	// LonghandProperties (experimental) (optional) Parsed longhand components of this property if it is a shorthand.
 339	// This field will be empty if the given property is not a shorthand.
 340	LonghandProperties []*CSSCSSProperty `json:"longhandProperties,omitempty"`
 341}
 342
 343// CSSCSSMediaSource enum.
 344type CSSCSSMediaSource string
 345
 346const (
 347	// CSSCSSMediaSourceMediaRule enum const.
 348	CSSCSSMediaSourceMediaRule CSSCSSMediaSource = "mediaRule"
 349
 350	// CSSCSSMediaSourceImportRule enum const.
 351	CSSCSSMediaSourceImportRule CSSCSSMediaSource = "importRule"
 352
 353	// CSSCSSMediaSourceLinkedSheet enum const.
 354	CSSCSSMediaSourceLinkedSheet CSSCSSMediaSource = "linkedSheet"
 355
 356	// CSSCSSMediaSourceInlineSheet enum const.
 357	CSSCSSMediaSourceInlineSheet CSSCSSMediaSource = "inlineSheet"
 358)
 359
 360// CSSCSSMedia CSS media rule descriptor.
 361type CSSCSSMedia struct {
 362	// Text Media query text.
 363	Text string `json:"text"`
 364
 365	// Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if
 366	// specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked
 367	// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline
 368	// stylesheet's STYLE tag.
 369	Source CSSCSSMediaSource `json:"source"`
 370
 371	// SourceURL (optional) URL of the document containing the media query description.
 372	SourceURL string `json:"sourceURL,omitempty"`
 373
 374	// Range (optional) The associated rule (@media or @import) header range in the enclosing stylesheet (if
 375	// available).
 376	Range *CSSSourceRange `json:"range,omitempty"`
 377
 378	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
 379	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 380
 381	// MediaList (optional) Array of media queries.
 382	MediaList []*CSSMediaQuery `json:"mediaList,omitempty"`
 383}
 384
 385// CSSMediaQuery Media query descriptor.
 386type CSSMediaQuery struct {
 387	// Expressions Array of media query expressions.
 388	Expressions []*CSSMediaQueryExpression `json:"expressions"`
 389
 390	// Active Whether the media query condition is satisfied.
 391	Active bool `json:"active"`
 392}
 393
 394// CSSMediaQueryExpression Media query expression descriptor.
 395type CSSMediaQueryExpression struct {
 396	// Value Media query expression value.
 397	Value float64 `json:"value"`
 398
 399	// Unit Media query expression units.
 400	Unit string `json:"unit"`
 401
 402	// Feature Media query expression feature.
 403	Feature string `json:"feature"`
 404
 405	// ValueRange (optional) The associated range of the value text in the enclosing stylesheet (if available).
 406	ValueRange *CSSSourceRange `json:"valueRange,omitempty"`
 407
 408	// ComputedLength (optional) Computed length of media query expression (if applicable).
 409	ComputedLength *float64 `json:"computedLength,omitempty"`
 410}
 411
 412// CSSCSSContainerQuery (experimental) CSS container query rule descriptor.
 413type CSSCSSContainerQuery struct {
 414	// Text Container query text.
 415	Text string `json:"text"`
 416
 417	// Range (optional) The associated rule header range in the enclosing stylesheet (if
 418	// available).
 419	Range *CSSSourceRange `json:"range,omitempty"`
 420
 421	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
 422	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 423
 424	// Name (optional) Optional name for the container.
 425	Name string `json:"name,omitempty"`
 426
 427	// PhysicalAxes (optional) Optional physical axes queried for the container.
 428	PhysicalAxes DOMPhysicalAxes `json:"physicalAxes,omitempty"`
 429
 430	// LogicalAxes (optional) Optional logical axes queried for the container.
 431	LogicalAxes DOMLogicalAxes `json:"logicalAxes,omitempty"`
 432}
 433
 434// CSSCSSSupports (experimental) CSS Supports at-rule descriptor.
 435type CSSCSSSupports struct {
 436	// Text Supports rule text.
 437	Text string `json:"text"`
 438
 439	// Active Whether the supports condition is satisfied.
 440	Active bool `json:"active"`
 441
 442	// Range (optional) The associated rule header range in the enclosing stylesheet (if
 443	// available).
 444	Range *CSSSourceRange `json:"range,omitempty"`
 445
 446	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
 447	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 448}
 449
 450// CSSCSSScope (experimental) CSS Scope at-rule descriptor.
 451type CSSCSSScope struct {
 452	// Text Scope rule text.
 453	Text string `json:"text"`
 454
 455	// Range (optional) The associated rule header range in the enclosing stylesheet (if
 456	// available).
 457	Range *CSSSourceRange `json:"range,omitempty"`
 458
 459	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
 460	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 461}
 462
 463// CSSCSSLayer (experimental) CSS Layer at-rule descriptor.
 464type CSSCSSLayer struct {
 465	// Text Layer name.
 466	Text string `json:"text"`
 467
 468	// Range (optional) The associated rule header range in the enclosing stylesheet (if
 469	// available).
 470	Range *CSSSourceRange `json:"range,omitempty"`
 471
 472	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
 473	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 474}
 475
 476// CSSCSSLayerData (experimental) CSS Layer data.
 477type CSSCSSLayerData struct {
 478	// Name Layer name.
 479	Name string `json:"name"`
 480
 481	// SubLayers (optional) Direct sub-layers
 482	SubLayers []*CSSCSSLayerData `json:"subLayers,omitempty"`
 483
 484	// Order Layer order. The order determines the order of the layer in the cascade order.
 485	// A higher number has higher priority in the cascade order.
 486	Order float64 `json:"order"`
 487}
 488
 489// CSSPlatformFontUsage Information about amount of glyphs that were rendered with given font.
 490type CSSPlatformFontUsage struct {
 491	// FamilyName Font's family name reported by platform.
 492	FamilyName string `json:"familyName"`
 493
 494	// PostScriptName Font's PostScript name reported by platform.
 495	PostScriptName string `json:"postScriptName"`
 496
 497	// IsCustomFont Indicates if the font was downloaded or resolved locally.
 498	IsCustomFont bool `json:"isCustomFont"`
 499
 500	// GlyphCount Amount of glyphs that were rendered with this font.
 501	GlyphCount float64 `json:"glyphCount"`
 502}
 503
 504// CSSFontVariationAxis Information about font variation axes for variable fonts.
 505type CSSFontVariationAxis struct {
 506	// Tag The font-variation-setting tag (a.k.a. "axis tag").
 507	Tag string `json:"tag"`
 508
 509	// Name Human-readable variation name in the default language (normally, "en").
 510	Name string `json:"name"`
 511
 512	// MinValue The minimum value (inclusive) the font supports for this tag.
 513	MinValue float64 `json:"minValue"`
 514
 515	// MaxValue The maximum value (inclusive) the font supports for this tag.
 516	MaxValue float64 `json:"maxValue"`
 517
 518	// DefaultValue The default value.
 519	DefaultValue float64 `json:"defaultValue"`
 520}
 521
 522// CSSFontFace Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions
 523// and additional information such as platformFontFamily and fontVariationAxes.
 524type CSSFontFace struct {
 525	// FontFamily The font-family.
 526	FontFamily string `json:"fontFamily"`
 527
 528	// FontStyle The font-style.
 529	FontStyle string `json:"fontStyle"`
 530
 531	// FontVariant The font-variant.
 532	FontVariant string `json:"fontVariant"`
 533
 534	// FontWeight The font-weight.
 535	FontWeight string `json:"fontWeight"`
 536
 537	// FontStretch The font-stretch.
 538	FontStretch string `json:"fontStretch"`
 539
 540	// FontDisplay The font-display.
 541	FontDisplay string `json:"fontDisplay"`
 542
 543	// UnicodeRange The unicode-range.
 544	UnicodeRange string `json:"unicodeRange"`
 545
 546	// Src The src.
 547	Src string `json:"src"`
 548
 549	// PlatformFontFamily The resolved platform font family
 550	PlatformFontFamily string `json:"platformFontFamily"`
 551
 552	// FontVariationAxes (optional) Available variation settings (a.k.a. "axes").
 553	FontVariationAxes []*CSSFontVariationAxis `json:"fontVariationAxes,omitempty"`
 554}
 555
 556// CSSCSSTryRule CSS try rule representation.
 557type CSSCSSTryRule struct {
 558	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
 559	// stylesheet rules) this rule came from.
 560	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 561
 562	// Origin Parent stylesheet's origin.
 563	Origin CSSStyleSheetOrigin `json:"origin"`
 564
 565	// Style Associated style declaration.
 566	Style *CSSCSSStyle `json:"style"`
 567}
 568
 569// CSSCSSPositionFallbackRule (deprecated) CSS position-fallback rule representation.
 570type CSSCSSPositionFallbackRule struct {
 571	// Name ...
 572	Name *CSSValue `json:"name"`
 573
 574	// TryRules List of keyframes.
 575	TryRules []*CSSCSSTryRule `json:"tryRules"`
 576}
 577
 578// CSSCSSPositionTryRule CSS @position-try rule representation.
 579type CSSCSSPositionTryRule struct {
 580	// Name The prelude dashed-ident name
 581	Name *CSSValue `json:"name"`
 582
 583	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
 584	// stylesheet rules) this rule came from.
 585	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 586
 587	// Origin Parent stylesheet's origin.
 588	Origin CSSStyleSheetOrigin `json:"origin"`
 589
 590	// Style Associated style declaration.
 591	Style *CSSCSSStyle `json:"style"`
 592}
 593
 594// CSSCSSKeyframesRule CSS keyframes rule representation.
 595type CSSCSSKeyframesRule struct {
 596	// AnimationName Animation name.
 597	AnimationName *CSSValue `json:"animationName"`
 598
 599	// Keyframes List of keyframes.
 600	Keyframes []*CSSCSSKeyframeRule `json:"keyframes"`
 601}
 602
 603// CSSCSSPropertyRegistration Representation of a custom property registration through CSS.registerProperty.
 604type CSSCSSPropertyRegistration struct {
 605	// PropertyName ...
 606	PropertyName string `json:"propertyName"`
 607
 608	// InitialValue (optional) ...
 609	InitialValue *CSSValue `json:"initialValue,omitempty"`
 610
 611	// Inherits ...
 612	Inherits bool `json:"inherits"`
 613
 614	// Syntax ...
 615	Syntax string `json:"syntax"`
 616}
 617
 618// CSSCSSFontPaletteValuesRule CSS font-palette-values rule representation.
 619type CSSCSSFontPaletteValuesRule struct {
 620	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
 621	// stylesheet rules) this rule came from.
 622	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 623
 624	// Origin Parent stylesheet's origin.
 625	Origin CSSStyleSheetOrigin `json:"origin"`
 626
 627	// FontPaletteName Associated font palette name.
 628	FontPaletteName *CSSValue `json:"fontPaletteName"`
 629
 630	// Style Associated style declaration.
 631	Style *CSSCSSStyle `json:"style"`
 632}
 633
 634// CSSCSSPropertyRule CSS property at-rule representation.
 635type CSSCSSPropertyRule struct {
 636	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
 637	// stylesheet rules) this rule came from.
 638	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 639
 640	// Origin Parent stylesheet's origin.
 641	Origin CSSStyleSheetOrigin `json:"origin"`
 642
 643	// PropertyName Associated property name.
 644	PropertyName *CSSValue `json:"propertyName"`
 645
 646	// Style Associated style declaration.
 647	Style *CSSCSSStyle `json:"style"`
 648}
 649
 650// CSSCSSKeyframeRule CSS keyframe rule representation.
 651type CSSCSSKeyframeRule struct {
 652	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
 653	// stylesheet rules) this rule came from.
 654	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
 655
 656	// Origin Parent stylesheet's origin.
 657	Origin CSSStyleSheetOrigin `json:"origin"`
 658
 659	// KeyText Associated key text.
 660	KeyText *CSSValue `json:"keyText"`
 661
 662	// Style Associated style declaration.
 663	Style *CSSCSSStyle `json:"style"`
 664}
 665
 666// CSSStyleDeclarationEdit A descriptor of operation to mutate style declaration text.
 667type CSSStyleDeclarationEdit struct {
 668	// StyleSheetID The css style sheet identifier.
 669	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
 670
 671	// Range The range of the style text in the enclosing stylesheet.
 672	Range *CSSSourceRange `json:"range"`
 673
 674	// Text New style text.
 675	Text string `json:"text"`
 676}
 677
 678// CSSAddRule Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
 679// position specified by `location`.
 680type CSSAddRule struct {
 681	// StyleSheetID The css style sheet identifier where a new rule should be inserted.
 682	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
 683
 684	// RuleText The text of a new rule.
 685	RuleText string `json:"ruleText"`
 686
 687	// Location Text position of a new rule in the target style sheet.
 688	Location *CSSSourceRange `json:"location"`
 689
 690	// NodeForPropertySyntaxValidation (experimental) (optional) NodeId for the DOM node in whose context custom property declarations for registered properties should be
 691	// validated. If omitted, declarations in the new rule text can only be validated statically, which may produce
 692	// incorrect results if the declaration contains a var() for example.
 693	NodeForPropertySyntaxValidation DOMNodeID `json:"nodeForPropertySyntaxValidation,omitempty"`
 694}
 695
 696// ProtoReq name.
 697func (m CSSAddRule) ProtoReq() string { return "CSS.addRule" }
 698
 699// Call the request.
 700func (m CSSAddRule) Call(c Client) (*CSSAddRuleResult, error) {
 701	var res CSSAddRuleResult
 702	return &res, call(m.ProtoReq(), m, &res, c)
 703}
 704
 705// CSSAddRuleResult ...
 706type CSSAddRuleResult struct {
 707	// Rule The newly created rule.
 708	Rule *CSSCSSRule `json:"rule"`
 709}
 710
 711// CSSCollectClassNames Returns all class names from specified stylesheet.
 712type CSSCollectClassNames struct {
 713	// StyleSheetID ...
 714	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
 715}
 716
 717// ProtoReq name.
 718func (m CSSCollectClassNames) ProtoReq() string { return "CSS.collectClassNames" }
 719
 720// Call the request.
 721func (m CSSCollectClassNames) Call(c Client) (*CSSCollectClassNamesResult, error) {
 722	var res CSSCollectClassNamesResult
 723	return &res, call(m.ProtoReq(), m, &res, c)
 724}
 725
 726// CSSCollectClassNamesResult ...
 727type CSSCollectClassNamesResult struct {
 728	// ClassNames Class name list.
 729	ClassNames []string `json:"classNames"`
 730}
 731
 732// CSSCreateStyleSheet Creates a new special "via-inspector" stylesheet in the frame with given `frameId`.
 733type CSSCreateStyleSheet struct {
 734	// FrameID Identifier of the frame where "via-inspector" stylesheet should be created.
 735	FrameID PageFrameID `json:"frameId"`
 736}
 737
 738// ProtoReq name.
 739func (m CSSCreateStyleSheet) ProtoReq() string { return "CSS.createStyleSheet" }
 740
 741// Call the request.
 742func (m CSSCreateStyleSheet) Call(c Client) (*CSSCreateStyleSheetResult, error) {
 743	var res CSSCreateStyleSheetResult
 744	return &res, call(m.ProtoReq(), m, &res, c)
 745}
 746
 747// CSSCreateStyleSheetResult ...
 748type CSSCreateStyleSheetResult struct {
 749	// StyleSheetID Identifier of the created "via-inspector" stylesheet.
 750	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
 751}
 752
 753// CSSDisable Disables the CSS agent for the given page.
 754type CSSDisable struct{}
 755
 756// ProtoReq name.
 757func (m CSSDisable) ProtoReq() string { return "CSS.disable" }
 758
 759// Call sends the request.
 760func (m CSSDisable) Call(c Client) error {
 761	return call(m.ProtoReq(), m, nil, c)
 762}
 763
 764// CSSEnable Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been
 765// enabled until the result of this command is received.
 766type CSSEnable struct{}
 767
 768// ProtoReq name.
 769func (m CSSEnable) ProtoReq() string { return "CSS.enable" }
 770
 771// Call sends the request.
 772func (m CSSEnable) Call(c Client) error {
 773	return call(m.ProtoReq(), m, nil, c)
 774}
 775
 776// CSSForcePseudoState Ensures that the given node will have specified pseudo-classes whenever its style is computed by
 777// the browser.
 778type CSSForcePseudoState struct {
 779	// NodeID The element id for which to force the pseudo state.
 780	NodeID DOMNodeID `json:"nodeId"`
 781
 782	// ForcedPseudoClasses Element pseudo classes to force when computing the element's style.
 783	ForcedPseudoClasses []string `json:"forcedPseudoClasses"`
 784}
 785
 786// ProtoReq name.
 787func (m CSSForcePseudoState) ProtoReq() string { return "CSS.forcePseudoState" }
 788
 789// Call sends the request.
 790func (m CSSForcePseudoState) Call(c Client) error {
 791	return call(m.ProtoReq(), m, nil, c)
 792}
 793
 794// CSSGetBackgroundColors ...
 795type CSSGetBackgroundColors struct {
 796	// NodeID Id of the node to get background colors for.
 797	NodeID DOMNodeID `json:"nodeId"`
 798}
 799
 800// ProtoReq name.
 801func (m CSSGetBackgroundColors) ProtoReq() string { return "CSS.getBackgroundColors" }
 802
 803// Call the request.
 804func (m CSSGetBackgroundColors) Call(c Client) (*CSSGetBackgroundColorsResult, error) {
 805	var res CSSGetBackgroundColorsResult
 806	return &res, call(m.ProtoReq(), m, &res, c)
 807}
 808
 809// CSSGetBackgroundColorsResult ...
 810type CSSGetBackgroundColorsResult struct {
 811	// BackgroundColors (optional) The range of background colors behind this element, if it contains any visible text. If no
 812	// visible text is present, this will be undefined. In the case of a flat background color,
 813	// this will consist of simply that color. In the case of a gradient, this will consist of each
 814	// of the color stops. For anything more complicated, this will be an empty array. Images will
 815	// be ignored (as if the image had failed to load).
 816	BackgroundColors []string `json:"backgroundColors,omitempty"`
 817
 818	// ComputedFontSize (optional) The computed font size for this node, as a CSS computed value string (e.g. '12px').
 819	ComputedFontSize string `json:"computedFontSize,omitempty"`
 820
 821	// ComputedFontWeight (optional) The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or
 822	// '100').
 823	ComputedFontWeight string `json:"computedFontWeight,omitempty"`
 824}
 825
 826// CSSGetComputedStyleForNode Returns the computed style for a DOM node identified by `nodeId`.
 827type CSSGetComputedStyleForNode struct {
 828	// NodeID ...
 829	NodeID DOMNodeID `json:"nodeId"`
 830}
 831
 832// ProtoReq name.
 833func (m CSSGetComputedStyleForNode) ProtoReq() string { return "CSS.getComputedStyleForNode" }
 834
 835// Call the request.
 836func (m CSSGetComputedStyleForNode) Call(c Client) (*CSSGetComputedStyleForNodeResult, error) {
 837	var res CSSGetComputedStyleForNodeResult
 838	return &res, call(m.ProtoReq(), m, &res, c)
 839}
 840
 841// CSSGetComputedStyleForNodeResult ...
 842type CSSGetComputedStyleForNodeResult struct {
 843	// ComputedStyle Computed style for the specified DOM node.
 844	ComputedStyle []*CSSCSSComputedStyleProperty `json:"computedStyle"`
 845}
 846
 847// CSSGetInlineStylesForNode Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
 848// attributes) for a DOM node identified by `nodeId`.
 849type CSSGetInlineStylesForNode struct {
 850	// NodeID ...
 851	NodeID DOMNodeID `json:"nodeId"`
 852}
 853
 854// ProtoReq name.
 855func (m CSSGetInlineStylesForNode) ProtoReq() string { return "CSS.getInlineStylesForNode" }
 856
 857// Call the request.
 858func (m CSSGetInlineStylesForNode) Call(c Client) (*CSSGetInlineStylesForNodeResult, error) {
 859	var res CSSGetInlineStylesForNodeResult
 860	return &res, call(m.ProtoReq(), m, &res, c)
 861}
 862
 863// CSSGetInlineStylesForNodeResult ...
 864type CSSGetInlineStylesForNodeResult struct {
 865	// InlineStyle (optional) Inline style for the specified DOM node.
 866	InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"`
 867
 868	// AttributesStyle (optional) Attribute-defined element style (e.g. resulting from "width=20 height=100%").
 869	AttributesStyle *CSSCSSStyle `json:"attributesStyle,omitempty"`
 870}
 871
 872// CSSGetMatchedStylesForNode Returns requested styles for a DOM node identified by `nodeId`.
 873type CSSGetMatchedStylesForNode struct {
 874	// NodeID ...
 875	NodeID DOMNodeID `json:"nodeId"`
 876}
 877
 878// ProtoReq name.
 879func (m CSSGetMatchedStylesForNode) ProtoReq() string { return "CSS.getMatchedStylesForNode" }
 880
 881// Call the request.
 882func (m CSSGetMatchedStylesForNode) Call(c Client) (*CSSGetMatchedStylesForNodeResult, error) {
 883	var res CSSGetMatchedStylesForNodeResult
 884	return &res, call(m.ProtoReq(), m, &res, c)
 885}
 886
 887// CSSGetMatchedStylesForNodeResult ...
 888type CSSGetMatchedStylesForNodeResult struct {
 889	// InlineStyle (optional) Inline style for the specified DOM node.
 890	InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"`
 891
 892	// AttributesStyle (optional) Attribute-defined element style (e.g. resulting from "width=20 height=100%").
 893	AttributesStyle *CSSCSSStyle `json:"attributesStyle,omitempty"`
 894
 895	// MatchedCSSRules (optional) CSS rules matching this node, from all applicable stylesheets.
 896	MatchedCSSRules []*CSSRuleMatch `json:"matchedCSSRules,omitempty"`
 897
 898	// PseudoElements (optional) Pseudo style matches for this node.
 899	PseudoElements []*CSSPseudoElementMatches `json:"pseudoElements,omitempty"`
 900
 901	// Inherited (optional) A chain of inherited styles (from the immediate node parent up to the DOM tree root).
 902	Inherited []*CSSInheritedStyleEntry `json:"inherited,omitempty"`
 903
 904	// InheritedPseudoElements (optional) A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).
 905	InheritedPseudoElements []*CSSInheritedPseudoElementMatches `json:"inheritedPseudoElements,omitempty"`
 906
 907	// CSSKeyframesRules (optional) A list of CSS keyframed animations matching this node.
 908	CSSKeyframesRules []*CSSCSSKeyframesRule `json:"cssKeyframesRules,omitempty"`
 909
 910	// CSSPositionFallbackRules (deprecated) (optional) A list of CSS position fallbacks matching this node.
 911	CSSPositionFallbackRules []*CSSCSSPositionFallbackRule `json:"cssPositionFallbackRules,omitempty"`
 912
 913	// CSSPositionTryRules (optional) A list of CSS @position-try rules matching this node, based on the position-try-options property.
 914	CSSPositionTryRules []*CSSCSSPositionTryRule `json:"cssPositionTryRules,omitempty"`
 915
 916	// CSSPropertyRules (optional) A list of CSS at-property rules matching this node.
 917	CSSPropertyRules []*CSSCSSPropertyRule `json:"cssPropertyRules,omitempty"`
 918
 919	// CSSPropertyRegistrations (optional) A list of CSS property registrations matching this node.
 920	CSSPropertyRegistrations []*CSSCSSPropertyRegistration `json:"cssPropertyRegistrations,omitempty"`
 921
 922	// CSSFontPaletteValuesRule (optional) A font-palette-values rule matching this node.
 923	CSSFontPaletteValuesRule *CSSCSSFontPaletteValuesRule `json:"cssFontPaletteValuesRule,omitempty"`
 924
 925	// ParentLayoutNodeID (experimental) (optional) Id of the first parent element that does not have display: contents.
 926	ParentLayoutNodeID DOMNodeID `json:"parentLayoutNodeId,omitempty"`
 927}
 928
 929// CSSGetMediaQueries Returns all media queries parsed by the rendering engine.
 930type CSSGetMediaQueries struct{}
 931
 932// ProtoReq name.
 933func (m CSSGetMediaQueries) ProtoReq() string { return "CSS.getMediaQueries" }
 934
 935// Call the request.
 936func (m CSSGetMediaQueries) Call(c Client) (*CSSGetMediaQueriesResult, error) {
 937	var res CSSGetMediaQueriesResult
 938	return &res, call(m.ProtoReq(), m, &res, c)
 939}
 940
 941// CSSGetMediaQueriesResult ...
 942type CSSGetMediaQueriesResult struct {
 943	// Medias ...
 944	Medias []*CSSCSSMedia `json:"medias"`
 945}
 946
 947// CSSGetPlatformFontsForNode Requests information about platform fonts which we used to render child TextNodes in the given
 948// node.
 949type CSSGetPlatformFontsForNode struct {
 950	// NodeID ...
 951	NodeID DOMNodeID `json:"nodeId"`
 952}
 953
 954// ProtoReq name.
 955func (m CSSGetPlatformFontsForNode) ProtoReq() string { return "CSS.getPlatformFontsForNode" }
 956
 957// Call the request.
 958func (m CSSGetPlatformFontsForNode) Call(c Client) (*CSSGetPlatformFontsForNodeResult, error) {
 959	var res CSSGetPlatformFontsForNodeResult
 960	return &res, call(m.ProtoReq(), m, &res, c)
 961}
 962
 963// CSSGetPlatformFontsForNodeResult ...
 964type CSSGetPlatformFontsForNodeResult struct {
 965	// Fonts Usage statistics for every employed platform font.
 966	Fonts []*CSSPlatformFontUsage `json:"fonts"`
 967}
 968
 969// CSSGetStyleSheetText Returns the current textual content for a stylesheet.
 970type CSSGetStyleSheetText struct {
 971	// StyleSheetID ...
 972	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
 973}
 974
 975// ProtoReq name.
 976func (m CSSGetStyleSheetText) ProtoReq() string { return "CSS.getStyleSheetText" }
 977
 978// Call the request.
 979func (m CSSGetStyleSheetText) Call(c Client) (*CSSGetStyleSheetTextResult, error) {
 980	var res CSSGetStyleSheetTextResult
 981	return &res, call(m.ProtoReq(), m, &res, c)
 982}
 983
 984// CSSGetStyleSheetTextResult ...
 985type CSSGetStyleSheetTextResult struct {
 986	// Text The stylesheet text.
 987	Text string `json:"text"`
 988}
 989
 990// CSSGetLayersForNode (experimental) Returns all layers parsed by the rendering engine for the tree scope of a node.
 991// Given a DOM element identified by nodeId, getLayersForNode returns the root
 992// layer for the nearest ancestor document or shadow root. The layer root contains
 993// the full layer tree for the tree scope and their ordering.
 994type CSSGetLayersForNode struct {
 995	// NodeID ...
 996	NodeID DOMNodeID `json:"nodeId"`
 997}
 998
 999// ProtoReq name.
1000func (m CSSGetLayersForNode) ProtoReq() string { return "CSS.getLayersForNode" }
1001
1002// Call the request.
1003func (m CSSGetLayersForNode) Call(c Client) (*CSSGetLayersForNodeResult, error) {
1004	var res CSSGetLayersForNodeResult
1005	return &res, call(m.ProtoReq(), m, &res, c)
1006}
1007
1008// CSSGetLayersForNodeResult (experimental) ...
1009type CSSGetLayersForNodeResult struct {
1010	// RootLayer ...
1011	RootLayer *CSSCSSLayerData `json:"rootLayer"`
1012}
1013
1014// CSSGetLocationForSelector (experimental) Given a CSS selector text and a style sheet ID, getLocationForSelector
1015// returns an array of locations of the CSS selector in the style sheet.
1016type CSSGetLocationForSelector struct {
1017	// StyleSheetID ...
1018	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1019
1020	// SelectorText ...
1021	SelectorText string `json:"selectorText"`
1022}
1023
1024// ProtoReq name.
1025func (m CSSGetLocationForSelector) ProtoReq() string { return "CSS.getLocationForSelector" }
1026
1027// Call the request.
1028func (m CSSGetLocationForSelector) Call(c Client) (*CSSGetLocationForSelectorResult, error) {
1029	var res CSSGetLocationForSelectorResult
1030	return &res, call(m.ProtoReq(), m, &res, c)
1031}
1032
1033// CSSGetLocationForSelectorResult (experimental) ...
1034type CSSGetLocationForSelectorResult struct {
1035	// Ranges ...
1036	Ranges []*CSSSourceRange `json:"ranges"`
1037}
1038
1039// CSSTrackComputedStyleUpdates (experimental) Starts tracking the given computed styles for updates. The specified array of properties
1040// replaces the one previously specified. Pass empty array to disable tracking.
1041// Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
1042// The changes to computed style properties are only tracked for nodes pushed to the front-end
1043// by the DOM agent. If no changes to the tracked properties occur after the node has been pushed
1044// to the front-end, no updates will be issued for the node.
1045type CSSTrackComputedStyleUpdates struct {
1046	// PropertiesToTrack ...
1047	PropertiesToTrack []*CSSCSSComputedStyleProperty `json:"propertiesToTrack"`
1048}
1049
1050// ProtoReq name.
1051func (m CSSTrackComputedStyleUpdates) ProtoReq() string { return "CSS.trackComputedStyleUpdates" }
1052
1053// Call sends the request.
1054func (m CSSTrackComputedStyleUpdates) Call(c Client) error {
1055	return call(m.ProtoReq(), m, nil, c)
1056}
1057
1058// CSSTakeComputedStyleUpdates (experimental) Polls the next batch of computed style updates.
1059type CSSTakeComputedStyleUpdates struct{}
1060
1061// ProtoReq name.
1062func (m CSSTakeComputedStyleUpdates) ProtoReq() string { return "CSS.takeComputedStyleUpdates" }
1063
1064// Call the request.
1065func (m CSSTakeComputedStyleUpdates) Call(c Client) (*CSSTakeComputedStyleUpdatesResult, error) {
1066	var res CSSTakeComputedStyleUpdatesResult
1067	return &res, call(m.ProtoReq(), m, &res, c)
1068}
1069
1070// CSSTakeComputedStyleUpdatesResult (experimental) ...
1071type CSSTakeComputedStyleUpdatesResult struct {
1072	// NodeIDs The list of node Ids that have their tracked computed styles updated.
1073	NodeIDs []DOMNodeID `json:"nodeIds"`
1074}
1075
1076// CSSSetEffectivePropertyValueForNode Find a rule with the given active property for the given node and set the new value for this
1077// property.
1078type CSSSetEffectivePropertyValueForNode struct {
1079	// NodeID The element id for which to set property.
1080	NodeID DOMNodeID `json:"nodeId"`
1081
1082	// PropertyName ...
1083	PropertyName string `json:"propertyName"`
1084
1085	// Value ...
1086	Value string `json:"value"`
1087}
1088
1089// ProtoReq name.
1090func (m CSSSetEffectivePropertyValueForNode) ProtoReq() string {
1091	return "CSS.setEffectivePropertyValueForNode"
1092}
1093
1094// Call sends the request.
1095func (m CSSSetEffectivePropertyValueForNode) Call(c Client) error {
1096	return call(m.ProtoReq(), m, nil, c)
1097}
1098
1099// CSSSetPropertyRulePropertyName Modifies the property rule property name.
1100type CSSSetPropertyRulePropertyName struct {
1101	// StyleSheetID ...
1102	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1103
1104	// Range ...
1105	Range *CSSSourceRange `json:"range"`
1106
1107	// PropertyName ...
1108	PropertyName string `json:"propertyName"`
1109}
1110
1111// ProtoReq name.
1112func (m CSSSetPropertyRulePropertyName) ProtoReq() string { return "CSS.setPropertyRulePropertyName" }
1113
1114// Call the request.
1115func (m CSSSetPropertyRulePropertyName) Call(c Client) (*CSSSetPropertyRulePropertyNameResult, error) {
1116	var res CSSSetPropertyRulePropertyNameResult
1117	return &res, call(m.ProtoReq(), m, &res, c)
1118}
1119
1120// CSSSetPropertyRulePropertyNameResult ...
1121type CSSSetPropertyRulePropertyNameResult struct {
1122	// PropertyName The resulting key text after modification.
1123	PropertyName *CSSValue `json:"propertyName"`
1124}
1125
1126// CSSSetKeyframeKey Modifies the keyframe rule key text.
1127type CSSSetKeyframeKey struct {
1128	// StyleSheetID ...
1129	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1130
1131	// Range ...
1132	Range *CSSSourceRange `json:"range"`
1133
1134	// KeyText ...
1135	KeyText string `json:"keyText"`
1136}
1137
1138// ProtoReq name.
1139func (m CSSSetKeyframeKey) ProtoReq() string { return "CSS.setKeyframeKey" }
1140
1141// Call the request.
1142func (m CSSSetKeyframeKey) Call(c Client) (*CSSSetKeyframeKeyResult, error) {
1143	var res CSSSetKeyframeKeyResult
1144	return &res, call(m.ProtoReq(), m, &res, c)
1145}
1146
1147// CSSSetKeyframeKeyResult ...
1148type CSSSetKeyframeKeyResult struct {
1149	// KeyText The resulting key text after modification.
1150	KeyText *CSSValue `json:"keyText"`
1151}
1152
1153// CSSSetMediaText Modifies the rule selector.
1154type CSSSetMediaText struct {
1155	// StyleSheetID ...
1156	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1157
1158	// Range ...
1159	Range *CSSSourceRange `json:"range"`
1160
1161	// Text ...
1162	Text string `json:"text"`
1163}
1164
1165// ProtoReq name.
1166func (m CSSSetMediaText) ProtoReq() string { return "CSS.setMediaText" }
1167
1168// Call the request.
1169func (m CSSSetMediaText) Call(c Client) (*CSSSetMediaTextResult, error) {
1170	var res CSSSetMediaTextResult
1171	return &res, call(m.ProtoReq(), m, &res, c)
1172}
1173
1174// CSSSetMediaTextResult ...
1175type CSSSetMediaTextResult struct {
1176	// Media The resulting CSS media rule after modification.
1177	Media *CSSCSSMedia `json:"media"`
1178}
1179
1180// CSSSetContainerQueryText (experimental) Modifies the expression of a container query.
1181type CSSSetContainerQueryText struct {
1182	// StyleSheetID ...
1183	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1184
1185	// Range ...
1186	Range *CSSSourceRange `json:"range"`
1187
1188	// Text ...
1189	Text string `json:"text"`
1190}
1191
1192// ProtoReq name.
1193func (m CSSSetContainerQueryText) ProtoReq() string { return "CSS.setContainerQueryText" }
1194
1195// Call the request.
1196func (m CSSSetContainerQueryText) Call(c Client) (*CSSSetContainerQueryTextResult, error) {
1197	var res CSSSetContainerQueryTextResult
1198	return &res, call(m.ProtoReq(), m, &res, c)
1199}
1200
1201// CSSSetContainerQueryTextResult (experimental) ...
1202type CSSSetContainerQueryTextResult struct {
1203	// ContainerQuery The resulting CSS container query rule after modification.
1204	ContainerQuery *CSSCSSContainerQuery `json:"containerQuery"`
1205}
1206
1207// CSSSetSupportsText (experimental) Modifies the expression of a supports at-rule.
1208type CSSSetSupportsText struct {
1209	// StyleSheetID ...
1210	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1211
1212	// Range ...
1213	Range *CSSSourceRange `json:"range"`
1214
1215	// Text ...
1216	Text string `json:"text"`
1217}
1218
1219// ProtoReq name.
1220func (m CSSSetSupportsText) ProtoReq() string { return "CSS.setSupportsText" }
1221
1222// Call the request.
1223func (m CSSSetSupportsText) Call(c Client) (*CSSSetSupportsTextResult, error) {
1224	var res CSSSetSupportsTextResult
1225	return &res, call(m.ProtoReq(), m, &res, c)
1226}
1227
1228// CSSSetSupportsTextResult (experimental) ...
1229type CSSSetSupportsTextResult struct {
1230	// Supports The resulting CSS Supports rule after modification.
1231	Supports *CSSCSSSupports `json:"supports"`
1232}
1233
1234// CSSSetScopeText (experimental) Modifies the expression of a scope at-rule.
1235type CSSSetScopeText struct {
1236	// StyleSheetID ...
1237	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1238
1239	// Range ...
1240	Range *CSSSourceRange `json:"range"`
1241
1242	// Text ...
1243	Text string `json:"text"`
1244}
1245
1246// ProtoReq name.
1247func (m CSSSetScopeText) ProtoReq() string { return "CSS.setScopeText" }
1248
1249// Call the request.
1250func (m CSSSetScopeText) Call(c Client) (*CSSSetScopeTextResult, error) {
1251	var res CSSSetScopeTextResult
1252	return &res, call(m.ProtoReq(), m, &res, c)
1253}
1254
1255// CSSSetScopeTextResult (experimental) ...
1256type CSSSetScopeTextResult struct {
1257	// Scope The resulting CSS Scope rule after modification.
1258	Scope *CSSCSSScope `json:"scope"`
1259}
1260
1261// CSSSetRuleSelector Modifies the rule selector.
1262type CSSSetRuleSelector struct {
1263	// StyleSheetID ...
1264	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1265
1266	// Range ...
1267	Range *CSSSourceRange `json:"range"`
1268
1269	// Selector ...
1270	Selector string `json:"selector"`
1271}
1272
1273// ProtoReq name.
1274func (m CSSSetRuleSelector) ProtoReq() string { return "CSS.setRuleSelector" }
1275
1276// Call the request.
1277func (m CSSSetRuleSelector) Call(c Client) (*CSSSetRuleSelectorResult, error) {
1278	var res CSSSetRuleSelectorResult
1279	return &res, call(m.ProtoReq(), m, &res, c)
1280}
1281
1282// CSSSetRuleSelectorResult ...
1283type CSSSetRuleSelectorResult struct {
1284	// SelectorList The resulting selector list after modification.
1285	SelectorList *CSSSelectorList `json:"selectorList"`
1286}
1287
1288// CSSSetStyleSheetText Sets the new stylesheet text.
1289type CSSSetStyleSheetText struct {
1290	// StyleSheetID ...
1291	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1292
1293	// Text ...
1294	Text string `json:"text"`
1295}
1296
1297// ProtoReq name.
1298func (m CSSSetStyleSheetText) ProtoReq() string { return "CSS.setStyleSheetText" }
1299
1300// Call the request.
1301func (m CSSSetStyleSheetText) Call(c Client) (*CSSSetStyleSheetTextResult, error) {
1302	var res CSSSetStyleSheetTextResult
1303	return &res, call(m.ProtoReq(), m, &res, c)
1304}
1305
1306// CSSSetStyleSheetTextResult ...
1307type CSSSetStyleSheetTextResult struct {
1308	// SourceMapURL (optional) URL of source map associated with script (if any).
1309	SourceMapURL string `json:"sourceMapURL,omitempty"`
1310}
1311
1312// CSSSetStyleTexts Applies specified style edits one after another in the given order.
1313type CSSSetStyleTexts struct {
1314	// Edits ...
1315	Edits []*CSSStyleDeclarationEdit `json:"edits"`
1316
1317	// NodeForPropertySyntaxValidation (experimental) (optional) NodeId for the DOM node in whose context custom property declarations for registered properties should be
1318	// validated. If omitted, declarations in the new rule text can only be validated statically, which may produce
1319	// incorrect results if the declaration contains a var() for example.
1320	NodeForPropertySyntaxValidation DOMNodeID `json:"nodeForPropertySyntaxValidation,omitempty"`
1321}
1322
1323// ProtoReq name.
1324func (m CSSSetStyleTexts) ProtoReq() string { return "CSS.setStyleTexts" }
1325
1326// Call the request.
1327func (m CSSSetStyleTexts) Call(c Client) (*CSSSetStyleTextsResult, error) {
1328	var res CSSSetStyleTextsResult
1329	return &res, call(m.ProtoReq(), m, &res, c)
1330}
1331
1332// CSSSetStyleTextsResult ...
1333type CSSSetStyleTextsResult struct {
1334	// Styles The resulting styles after modification.
1335	Styles []*CSSCSSStyle `json:"styles"`
1336}
1337
1338// CSSStartRuleUsageTracking Enables the selector recording.
1339type CSSStartRuleUsageTracking struct{}
1340
1341// ProtoReq name.
1342func (m CSSStartRuleUsageTracking) ProtoReq() string { return "CSS.startRuleUsageTracking" }
1343
1344// Call sends the request.
1345func (m CSSStartRuleUsageTracking) Call(c Client) error {
1346	return call(m.ProtoReq(), m, nil, c)
1347}
1348
1349// CSSStopRuleUsageTracking Stop tracking rule usage and return the list of rules that were used since last call to
1350// `takeCoverageDelta` (or since start of coverage instrumentation).
1351type CSSStopRuleUsageTracking struct{}
1352
1353// ProtoReq name.
1354func (m CSSStopRuleUsageTracking) ProtoReq() string { return "CSS.stopRuleUsageTracking" }
1355
1356// Call the request.
1357func (m CSSStopRuleUsageTracking) Call(c Client) (*CSSStopRuleUsageTrackingResult, error) {
1358	var res CSSStopRuleUsageTrackingResult
1359	return &res, call(m.ProtoReq(), m, &res, c)
1360}
1361
1362// CSSStopRuleUsageTrackingResult ...
1363type CSSStopRuleUsageTrackingResult struct {
1364	// RuleUsage ...
1365	RuleUsage []*CSSRuleUsage `json:"ruleUsage"`
1366}
1367
1368// CSSTakeCoverageDelta Obtain list of rules that became used since last call to this method (or since start of coverage
1369// instrumentation).
1370type CSSTakeCoverageDelta struct{}
1371
1372// ProtoReq name.
1373func (m CSSTakeCoverageDelta) ProtoReq() string { return "CSS.takeCoverageDelta" }
1374
1375// Call the request.
1376func (m CSSTakeCoverageDelta) Call(c Client) (*CSSTakeCoverageDeltaResult, error) {
1377	var res CSSTakeCoverageDeltaResult
1378	return &res, call(m.ProtoReq(), m, &res, c)
1379}
1380
1381// CSSTakeCoverageDeltaResult ...
1382type CSSTakeCoverageDeltaResult struct {
1383	// Coverage ...
1384	Coverage []*CSSRuleUsage `json:"coverage"`
1385
1386	// Timestamp Monotonically increasing time, in seconds.
1387	Timestamp float64 `json:"timestamp"`
1388}
1389
1390// CSSSetLocalFontsEnabled (experimental) Enables/disables rendering of local CSS fonts (enabled by default).
1391type CSSSetLocalFontsEnabled struct {
1392	// Enabled Whether rendering of local fonts is enabled.
1393	Enabled bool `json:"enabled"`
1394}
1395
1396// ProtoReq name.
1397func (m CSSSetLocalFontsEnabled) ProtoReq() string { return "CSS.setLocalFontsEnabled" }
1398
1399// Call sends the request.
1400func (m CSSSetLocalFontsEnabled) Call(c Client) error {
1401	return call(m.ProtoReq(), m, nil, c)
1402}
1403
1404// CSSFontsUpdated Fires whenever a web font is updated.  A non-empty font parameter indicates a successfully loaded
1405// web font.
1406type CSSFontsUpdated struct {
1407	// Font (optional) The web font that has loaded.
1408	Font *CSSFontFace `json:"font,omitempty"`
1409}
1410
1411// ProtoEvent name.
1412func (evt CSSFontsUpdated) ProtoEvent() string {
1413	return "CSS.fontsUpdated"
1414}
1415
1416// CSSMediaQueryResultChanged Fires whenever a MediaQuery result changes (for example, after a browser window has been
1417// resized.) The current implementation considers only viewport-dependent media features.
1418type CSSMediaQueryResultChanged struct{}
1419
1420// ProtoEvent name.
1421func (evt CSSMediaQueryResultChanged) ProtoEvent() string {
1422	return "CSS.mediaQueryResultChanged"
1423}
1424
1425// CSSStyleSheetAdded Fired whenever an active document stylesheet is added.
1426type CSSStyleSheetAdded struct {
1427	// Header Added stylesheet metainfo.
1428	Header *CSSCSSStyleSheetHeader `json:"header"`
1429}
1430
1431// ProtoEvent name.
1432func (evt CSSStyleSheetAdded) ProtoEvent() string {
1433	return "CSS.styleSheetAdded"
1434}
1435
1436// CSSStyleSheetChanged Fired whenever a stylesheet is changed as a result of the client operation.
1437type CSSStyleSheetChanged struct {
1438	// StyleSheetID ...
1439	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1440}
1441
1442// ProtoEvent name.
1443func (evt CSSStyleSheetChanged) ProtoEvent() string {
1444	return "CSS.styleSheetChanged"
1445}
1446
1447// CSSStyleSheetRemoved Fired whenever an active document stylesheet is removed.
1448type CSSStyleSheetRemoved struct {
1449	// StyleSheetID Identifier of the removed stylesheet.
1450	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
1451}
1452
1453// ProtoEvent name.
1454func (evt CSSStyleSheetRemoved) ProtoEvent() string {
1455	return "CSS.styleSheetRemoved"
1456}