package
0.0.0-20250224005500-01948a15fe7c
Repository: https://github.com/chromedp/cdproto.git
Documentation: pkg.go.dev

# Functions

AddRule inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.
CollectClassNames returns all class names from specified stylesheet.
CreateStyleSheet creates a new special "via-inspector" stylesheet in the frame with given frameId.
Disable disables the CSS agent for the given page.
Enable enables the CSS agent for the given page.
ForcePseudoState ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.
ForceStartingStyle ensures that the given node is in its starting-style state.
GetAnimatedStylesForNode returns the styles coming from animations & transitions including the animation & transition styles coming from inheritance chain.
GetBackgroundColors [no description].
GetComputedStyleForNode returns the computed style for a DOM node identified by nodeId.
GetInlineStylesForNode returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.
GetLayersForNode returns all layers parsed by the rendering engine for the tree scope of a node.
GetLocationForSelector given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet.
GetLonghandProperties [no description].
GetMatchedStylesForNode returns requested styles for a DOM node identified by nodeId.
GetMediaQueries returns all media queries parsed by the rendering engine.
GetPlatformFontsForNode requests information about platform fonts which we used to render child TextNodes in the given node.
GetStyleSheetText returns the current textual content for a stylesheet.
ResolveValues resolve the specified values in the context of the provided element.
SetContainerQueryText modifies the expression of a container query.
SetEffectivePropertyValueForNode find a rule with the given active property for the given node and set the new value for this property.
SetKeyframeKey modifies the keyframe rule key text.
SetLocalFontsEnabled enables/disables rendering of local CSS fonts (enabled by default).
SetMediaText modifies the rule selector.
SetPropertyRulePropertyName modifies the property rule property name.
SetRuleSelector modifies the rule selector.
SetScopeText modifies the expression of a scope at-rule.
SetStyleSheetText sets the new stylesheet text.
SetStyleTexts applies specified style edits one after another in the given order.
SetSupportsText modifies the expression of a supports at-rule.
StartRuleUsageTracking enables the selector recording.
StopRuleUsageTracking stop tracking rule usage and return the list of rules that were used since last call to takeCoverageDelta (or since start of coverage instrumentation).
TakeComputedStyleUpdates polls the next batch of computed style updates.
TakeCoverageDelta obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).
TrackComputedStyleUpdates starts tracking the given computed styles for updates.
TrackComputedStyleUpdatesForNode starts tracking the given node for the computed style updates and whenever the computed style is updated for node, it queues a computedStyleUpdated event with throttling.

# Constants

Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
MediaSource values.
MediaSource values.
MediaSource values.
MediaSource values.
RuleType values.
RuleType values.
RuleType values.
RuleType values.
RuleType values.
RuleType values.
RuleType values.
StyleSheetOrigin values.
StyleSheetOrigin values.
StyleSheetOrigin values.
StyleSheetOrigin values.

# Structs

AddRuleParams inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.
AddRuleReturns return values.
AnimationStyle CSS style coming from animations with the name of the animation.
CollectClassNamesParams returns all class names from specified stylesheet.
CollectClassNamesReturns return values.
ComputedStyleProperty [no description].
ContainerQuery CSS container query rule descriptor.
CreateStyleSheetParams creates a new special "via-inspector" stylesheet in the frame with given frameId.
CreateStyleSheetReturns return values.
DisableParams disables the CSS agent for the given page.
EnableParams enables the CSS agent for the given page.
EventComputedStyleUpdated [no description].
EventFontsUpdated fires whenever a web font is updated.
EventMediaQueryResultChanged fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features.
EventStyleSheetAdded fired whenever an active document stylesheet is added.
EventStyleSheetChanged fired whenever a stylesheet is changed as a result of the client operation.
EventStyleSheetRemoved fired whenever an active document stylesheet is removed.
FontFace properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.
FontPaletteValuesRule CSS font-palette-values rule representation.
FontVariationAxis information about font variation axes for variable fonts.
ForcePseudoStateParams ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.
ForceStartingStyleParams ensures that the given node is in its starting-style state.
GetAnimatedStylesForNodeParams returns the styles coming from animations & transitions including the animation & transition styles coming from inheritance chain.
GetAnimatedStylesForNodeReturns return values.
GetBackgroundColorsParams [no description].
GetBackgroundColorsReturns return values.
GetComputedStyleForNodeParams returns the computed style for a DOM node identified by nodeId.
GetComputedStyleForNodeReturns return values.
GetInlineStylesForNodeParams returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.
GetInlineStylesForNodeReturns return values.
GetLayersForNodeParams returns all layers parsed by the rendering engine for the tree scope of a node.
GetLayersForNodeReturns return values.
GetLocationForSelectorParams given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet.
GetLocationForSelectorReturns return values.
GetLonghandPropertiesParams [no description].
GetLonghandPropertiesReturns return values.
GetMatchedStylesForNodeParams returns requested styles for a DOM node identified by nodeId.
GetMatchedStylesForNodeReturns return values.
GetMediaQueriesParams returns all media queries parsed by the rendering engine.
GetMediaQueriesReturns return values.
GetPlatformFontsForNodeParams requests information about platform fonts which we used to render child TextNodes in the given node.
GetPlatformFontsForNodeReturns return values.
GetStyleSheetTextParams returns the current textual content for a stylesheet.
GetStyleSheetTextReturns return values.
InheritedAnimatedStyleEntry inherited CSS style collection for animated styles from ancestor node.
InheritedPseudoElementMatches inherited pseudo element matches from pseudos of an ancestor node.
InheritedStyleEntry inherited CSS rule collection from ancestor node.
KeyframeRule CSS keyframe rule representation.
KeyframesRule CSS keyframes rule representation.
Layer CSS Layer at-rule descriptor.
LayerData CSS Layer data.
Media CSS media rule descriptor.
MediaQuery media query descriptor.
MediaQueryExpression media query expression descriptor.
PlatformFontUsage information about amount of glyphs that were rendered with given font.
PositionTryRule CSS @position-try rule representation.
Property CSS property declaration data.
PropertyRegistration representation of a custom property registration through CSS.registerProperty.
PropertyRule CSS property at-rule representation.
PseudoElementMatches CSS rule collection for a single pseudo style.
ResolveValuesParams resolve the specified values in the context of the provided element.
ResolveValuesReturns return values.
Rule CSS rule representation.
RuleMatch match data for a CSS rule.
RuleUsage CSS coverage information.
Scope CSS Scope at-rule descriptor.
SelectorList selector list data.
SetContainerQueryTextParams modifies the expression of a container query.
SetContainerQueryTextReturns return values.
SetEffectivePropertyValueForNodeParams find a rule with the given active property for the given node and set the new value for this property.
SetKeyframeKeyParams modifies the keyframe rule key text.
SetKeyframeKeyReturns return values.
SetLocalFontsEnabledParams enables/disables rendering of local CSS fonts (enabled by default).
SetMediaTextParams modifies the rule selector.
SetMediaTextReturns return values.
SetPropertyRulePropertyNameParams modifies the property rule property name.
SetPropertyRulePropertyNameReturns return values.
SetRuleSelectorParams modifies the rule selector.
SetRuleSelectorReturns return values.
SetScopeTextParams modifies the expression of a scope at-rule.
SetScopeTextReturns return values.
SetStyleSheetTextParams sets the new stylesheet text.
SetStyleSheetTextReturns return values.
SetStyleTextsParams applies specified style edits one after another in the given order.
SetStyleTextsReturns return values.
SetSupportsTextParams modifies the expression of a supports at-rule.
SetSupportsTextReturns return values.
ShorthandEntry [no description].
SourceRange text range within a resource.
Specificity specificity: https://drafts.csswg.org/selectors/#specificity-rules.
StartingStyle CSS Starting Style at-rule descriptor.
StartRuleUsageTrackingParams enables the selector recording.
StopRuleUsageTrackingParams stop tracking rule usage and return the list of rules that were used since last call to takeCoverageDelta (or since start of coverage instrumentation).
StopRuleUsageTrackingReturns return values.
Style CSS style representation.
StyleDeclarationEdit a descriptor of operation to mutate style declaration text.
StyleSheetHeader CSS stylesheet metainformation.
Supports CSS Supports at-rule descriptor.
TakeComputedStyleUpdatesParams polls the next batch of computed style updates.
TakeComputedStyleUpdatesReturns return values.
TakeCoverageDeltaParams obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).
TakeCoverageDeltaReturns return values.
TrackComputedStyleUpdatesForNodeParams starts tracking the given node for the computed style updates and whenever the computed style is updated for node, it queues a computedStyleUpdated event with throttling.
TrackComputedStyleUpdatesParams starts tracking the given computed styles for updates.
TryRule CSS try rule representation.
Value data for a simple selector (these are delimited by commas in a selector list).

# Type aliases

MediaSource source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
RuleType enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
StyleSheetID [no description].
StyleSheetOrigin stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent stylesheets, "inspector" for stylesheets created by the inspector (i.e.