package
0.0.0-20200525080501-418ac89e6fd2
Repository: https://github.com/bootgo/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.
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.
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.
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.
SetMediaText modifies the rule selector.
SetRuleSelector modifies the rule selector.
SetStyleSheetText sets the new stylesheet text.
SetStyleTexts applies specified style edits one after another in the given order.
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).
TakeCoverageDelta obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).
# 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.
MediaSource values.
MediaSource values.
MediaSource values.
MediaSource 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.
CollectClassNamesParams returns all class names from specified stylesheet.
CollectClassNamesReturns return values.
ComputedProperty [no description].
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.
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.
ForcePseudoStateParams ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.
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.
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.
InheritedStyleEntry inherited CSS rule collection from ancestor node.
KeyframeRule CSS keyframe rule representation.
KeyframesRule CSS keyframes rule representation.
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.
Property CSS property declaration data.
PseudoElementMatches CSS rule collection for a single pseudo style.
Rule CSS rule representation.
RuleMatch match data for a CSS rule.
RuleUsage CSS coverage information.
SelectorList selector list data.
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.
SetMediaTextParams modifies the rule selector.
SetMediaTextReturns return values.
SetRuleSelectorParams modifies the rule selector.
SetRuleSelectorReturns 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.
ShorthandEntry [no description].
SourceRange text range within a resource.
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.
TakeCoverageDeltaParams obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).
TakeCoverageDeltaReturns return values.
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.
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.