package css
Import Path
github.com/chromedp/cdproto/css (on go.dev)
Dependency Relation
imports 8 packages, and imported by 2 packages
Involved Source Files
Package css provides the Chrome DevTools Protocol
commands, types, and events for the CSS domain.
This domain exposes CSS read/write operations. All CSS objects
(stylesheets, rules, and styles) have an associated id used in subsequent
operations on the related object. Each object type has a specific id
structure, and those are not interchangeable between objects of different
kinds. CSS objects can be loaded using the get*ForNode() calls (which accept
a DOM node id). A client can also keep track of stylesheets via the
styleSheetAdded/styleSheetRemoved events and subsequently load the required
stylesheet contents using the getStyleSheet[Text]() methods.
Generated by the cdproto-gen command.
easyjson.go
events.go
types.go
Package-Level Type Names (total 95)
AddRuleParams inserts a new rule with the given ruleText in a stylesheet
with given styleSheetId, at the position specified by location.
// Text position of a new rule in the target style sheet.
// The text of a new rule.
// The css style sheet identifier where a new rule should be inserted.
Do executes CSS.addRule against the provided context.
returns:
rule - The newly created rule.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
AddRuleParams : github.com/goccy/go-json.Marshaler
*AddRuleParams : github.com/goccy/go-json.Unmarshaler
AddRuleParams : github.com/mailru/easyjson.Marshaler
*AddRuleParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*AddRuleParams : github.com/mailru/easyjson.Unmarshaler
AddRuleParams : encoding/json.Marshaler
*AddRuleParams : encoding/json.Unmarshaler
func AddRule(styleSheetID StyleSheetID, ruleText string, location *SourceRange) *AddRuleParams
AddRuleReturns return values.
// The newly created rule.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
AddRuleReturns : github.com/goccy/go-json.Marshaler
*AddRuleReturns : github.com/goccy/go-json.Unmarshaler
AddRuleReturns : github.com/mailru/easyjson.Marshaler
*AddRuleReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*AddRuleReturns : github.com/mailru/easyjson.Unmarshaler
AddRuleReturns : encoding/json.Marshaler
*AddRuleReturns : encoding/json.Unmarshaler
CollectClassNamesParams returns all class names from specified stylesheet.
StyleSheetID StyleSheetID
Do executes CSS.collectClassNames against the provided context.
returns:
classNames - Class name list.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
CollectClassNamesParams : github.com/goccy/go-json.Marshaler
*CollectClassNamesParams : github.com/goccy/go-json.Unmarshaler
CollectClassNamesParams : github.com/mailru/easyjson.Marshaler
*CollectClassNamesParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*CollectClassNamesParams : github.com/mailru/easyjson.Unmarshaler
CollectClassNamesParams : encoding/json.Marshaler
*CollectClassNamesParams : encoding/json.Unmarshaler
func CollectClassNames(styleSheetID StyleSheetID) *CollectClassNamesParams
CollectClassNamesReturns return values.
// Class name list.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
CollectClassNamesReturns : github.com/goccy/go-json.Marshaler
*CollectClassNamesReturns : github.com/goccy/go-json.Unmarshaler
CollectClassNamesReturns : github.com/mailru/easyjson.Marshaler
*CollectClassNamesReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*CollectClassNamesReturns : github.com/mailru/easyjson.Unmarshaler
CollectClassNamesReturns : encoding/json.Marshaler
*CollectClassNamesReturns : encoding/json.Unmarshaler
ComputedStyleProperty [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSComputedStyleProperty
// address field name, for example GIVEN_NAME.
// address field value, for example Jon Doe.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
ComputedStyleProperty : github.com/goccy/go-json.Marshaler
*ComputedStyleProperty : github.com/goccy/go-json.Unmarshaler
ComputedStyleProperty : github.com/mailru/easyjson.Marshaler
*ComputedStyleProperty : github.com/mailru/easyjson.MarshalerUnmarshaler
*ComputedStyleProperty : github.com/mailru/easyjson.Unmarshaler
ComputedStyleProperty : encoding/json.Marshaler
*ComputedStyleProperty : encoding/json.Unmarshaler
func (*GetComputedStyleForNodeParams).Do(ctx context.Context) (computedStyle []*ComputedStyleProperty, err error)
func TrackComputedStyleUpdates(propertiesToTrack []*ComputedStyleProperty) *TrackComputedStyleUpdatesParams
func github.com/chromedp/chromedp.ComputedStyle(sel interface{}, style *[]*ComputedStyleProperty, opts ...chromedp.QueryOption) chromedp.QueryAction
ContainerQuery CSS container query rule descriptor.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSContainerQuery
// Optional logical axes queried for the container.
// Optional name for the container.
// Optional physical axes queried for the container.
// The associated rule header range in the enclosing stylesheet (if available).
// Identifier of the stylesheet containing this object (if exists).
// Container query text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
ContainerQuery : github.com/goccy/go-json.Marshaler
*ContainerQuery : github.com/goccy/go-json.Unmarshaler
ContainerQuery : github.com/mailru/easyjson.Marshaler
*ContainerQuery : github.com/mailru/easyjson.MarshalerUnmarshaler
*ContainerQuery : github.com/mailru/easyjson.Unmarshaler
ContainerQuery : encoding/json.Marshaler
*ContainerQuery : encoding/json.Unmarshaler
func (*SetContainerQueryTextParams).Do(ctx context.Context) (containerQuery *ContainerQuery, err error)
CreateStyleSheetParams creates a new special "via-inspector" stylesheet in
the frame with given frameId.
FrameID cdp.FrameID
Do executes CSS.createStyleSheet against the provided context.
returns:
styleSheetID - Identifier of the created "via-inspector" stylesheet.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
CreateStyleSheetParams : github.com/goccy/go-json.Marshaler
*CreateStyleSheetParams : github.com/goccy/go-json.Unmarshaler
CreateStyleSheetParams : github.com/mailru/easyjson.Marshaler
*CreateStyleSheetParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*CreateStyleSheetParams : github.com/mailru/easyjson.Unmarshaler
CreateStyleSheetParams : encoding/json.Marshaler
*CreateStyleSheetParams : encoding/json.Unmarshaler
func CreateStyleSheet(frameID cdp.FrameID) *CreateStyleSheetParams
CreateStyleSheetReturns return values.
// Identifier of the created "via-inspector" stylesheet.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
CreateStyleSheetReturns : github.com/goccy/go-json.Marshaler
*CreateStyleSheetReturns : github.com/goccy/go-json.Unmarshaler
CreateStyleSheetReturns : github.com/mailru/easyjson.Marshaler
*CreateStyleSheetReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*CreateStyleSheetReturns : github.com/mailru/easyjson.Unmarshaler
CreateStyleSheetReturns : encoding/json.Marshaler
*CreateStyleSheetReturns : encoding/json.Unmarshaler
DisableParams disables the CSS agent for the given page.
Do executes CSS.disable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*DisableParams : github.com/chromedp/chromedp.Action
*DisableParams : github.com/chromedp/chromedp.CallAction
*DisableParams : github.com/chromedp/chromedp.EmulateAction
*DisableParams : github.com/chromedp/chromedp.EvaluateAction
*DisableParams : github.com/chromedp/chromedp.KeyAction
*DisableParams : github.com/chromedp/chromedp.MouseAction
*DisableParams : github.com/chromedp/chromedp.NavigateAction
*DisableParams : github.com/chromedp/chromedp.PollAction
*DisableParams : github.com/chromedp/chromedp.QueryAction
DisableParams : github.com/goccy/go-json.Marshaler
*DisableParams : github.com/goccy/go-json.Unmarshaler
DisableParams : github.com/mailru/easyjson.Marshaler
*DisableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*DisableParams : github.com/mailru/easyjson.Unmarshaler
DisableParams : encoding/json.Marshaler
*DisableParams : encoding/json.Unmarshaler
func Disable() *DisableParams
EnableParams enables the CSS agent for the given page. Clients should not
assume that the CSS agent has been enabled until the result of this command
is received.
Do executes CSS.enable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*EnableParams : github.com/chromedp/chromedp.Action
*EnableParams : github.com/chromedp/chromedp.CallAction
*EnableParams : github.com/chromedp/chromedp.EmulateAction
*EnableParams : github.com/chromedp/chromedp.EvaluateAction
*EnableParams : github.com/chromedp/chromedp.KeyAction
*EnableParams : github.com/chromedp/chromedp.MouseAction
*EnableParams : github.com/chromedp/chromedp.NavigateAction
*EnableParams : github.com/chromedp/chromedp.PollAction
*EnableParams : github.com/chromedp/chromedp.QueryAction
EnableParams : github.com/goccy/go-json.Marshaler
*EnableParams : github.com/goccy/go-json.Unmarshaler
EnableParams : github.com/mailru/easyjson.Marshaler
*EnableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*EnableParams : github.com/mailru/easyjson.Unmarshaler
EnableParams : encoding/json.Marshaler
*EnableParams : encoding/json.Unmarshaler
func Enable() *EnableParams
EventFontsUpdated fires whenever a web font is updated. A non-empty font
parameter indicates a successfully loaded web font.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-fontsUpdated
// The web font that has loaded.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventFontsUpdated : github.com/goccy/go-json.Marshaler
*EventFontsUpdated : github.com/goccy/go-json.Unmarshaler
EventFontsUpdated : github.com/mailru/easyjson.Marshaler
*EventFontsUpdated : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventFontsUpdated : github.com/mailru/easyjson.Unmarshaler
EventFontsUpdated : encoding/json.Marshaler
*EventFontsUpdated : encoding/json.Unmarshaler
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-mediaQueryResultChanged
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventMediaQueryResultChanged : github.com/goccy/go-json.Marshaler
*EventMediaQueryResultChanged : github.com/goccy/go-json.Unmarshaler
EventMediaQueryResultChanged : github.com/mailru/easyjson.Marshaler
*EventMediaQueryResultChanged : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventMediaQueryResultChanged : github.com/mailru/easyjson.Unmarshaler
EventMediaQueryResultChanged : encoding/json.Marshaler
*EventMediaQueryResultChanged : encoding/json.Unmarshaler
EventStyleSheetAdded fired whenever an active document stylesheet is
added.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetAdded
// Added stylesheet metainfo.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventStyleSheetAdded : github.com/goccy/go-json.Marshaler
*EventStyleSheetAdded : github.com/goccy/go-json.Unmarshaler
EventStyleSheetAdded : github.com/mailru/easyjson.Marshaler
*EventStyleSheetAdded : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventStyleSheetAdded : github.com/mailru/easyjson.Unmarshaler
EventStyleSheetAdded : encoding/json.Marshaler
*EventStyleSheetAdded : encoding/json.Unmarshaler
EventStyleSheetChanged fired whenever a stylesheet is changed as a result
of the client operation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetChanged
StyleSheetID StyleSheetID
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventStyleSheetChanged : github.com/goccy/go-json.Marshaler
*EventStyleSheetChanged : github.com/goccy/go-json.Unmarshaler
EventStyleSheetChanged : github.com/mailru/easyjson.Marshaler
*EventStyleSheetChanged : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventStyleSheetChanged : github.com/mailru/easyjson.Unmarshaler
EventStyleSheetChanged : encoding/json.Marshaler
*EventStyleSheetChanged : encoding/json.Unmarshaler
EventStyleSheetRemoved fired whenever an active document stylesheet is
removed.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetRemoved
StyleSheetID StyleSheetID
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventStyleSheetRemoved : github.com/goccy/go-json.Marshaler
*EventStyleSheetRemoved : github.com/goccy/go-json.Unmarshaler
EventStyleSheetRemoved : github.com/mailru/easyjson.Marshaler
*EventStyleSheetRemoved : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventStyleSheetRemoved : github.com/mailru/easyjson.Unmarshaler
EventStyleSheetRemoved : encoding/json.Marshaler
*EventStyleSheetRemoved : encoding/json.Unmarshaler
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-FontFace
// The font-display.
// The font-family.
// The font-stretch.
// The font-style.
// The font-variant.
// Available variation settings (a.k.a. "axes").
// The font-weight.
// The resolved platform font family
// The src.
// The unicode-range.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
FontFace : github.com/goccy/go-json.Marshaler
*FontFace : github.com/goccy/go-json.Unmarshaler
FontFace : github.com/mailru/easyjson.Marshaler
*FontFace : github.com/mailru/easyjson.MarshalerUnmarshaler
*FontFace : github.com/mailru/easyjson.Unmarshaler
FontFace : encoding/json.Marshaler
*FontFace : encoding/json.Unmarshaler
FontVariationAxis information about font variation axes for variable
fonts.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-FontVariationAxis
// The default value.
// The maximum value (inclusive) the font supports for this tag.
// The minimum value (inclusive) the font supports for this tag.
// Human-readable variation name in the default language (normally, "en").
// The font-variation-setting tag (a.k.a. "axis tag").
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
FontVariationAxis : github.com/goccy/go-json.Marshaler
*FontVariationAxis : github.com/goccy/go-json.Unmarshaler
FontVariationAxis : github.com/mailru/easyjson.Marshaler
*FontVariationAxis : github.com/mailru/easyjson.MarshalerUnmarshaler
*FontVariationAxis : github.com/mailru/easyjson.Unmarshaler
FontVariationAxis : encoding/json.Marshaler
*FontVariationAxis : encoding/json.Unmarshaler
ForcePseudoStateParams ensures that the given node will have specified
pseudo-classes whenever its style is computed by the browser.
// Element pseudo classes to force when computing the element's style.
// The element id for which to force the pseudo state.
Do executes CSS.forcePseudoState against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*ForcePseudoStateParams : github.com/chromedp/chromedp.Action
*ForcePseudoStateParams : github.com/chromedp/chromedp.CallAction
*ForcePseudoStateParams : github.com/chromedp/chromedp.EmulateAction
*ForcePseudoStateParams : github.com/chromedp/chromedp.EvaluateAction
*ForcePseudoStateParams : github.com/chromedp/chromedp.KeyAction
*ForcePseudoStateParams : github.com/chromedp/chromedp.MouseAction
*ForcePseudoStateParams : github.com/chromedp/chromedp.NavigateAction
*ForcePseudoStateParams : github.com/chromedp/chromedp.PollAction
*ForcePseudoStateParams : github.com/chromedp/chromedp.QueryAction
ForcePseudoStateParams : github.com/goccy/go-json.Marshaler
*ForcePseudoStateParams : github.com/goccy/go-json.Unmarshaler
ForcePseudoStateParams : github.com/mailru/easyjson.Marshaler
*ForcePseudoStateParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*ForcePseudoStateParams : github.com/mailru/easyjson.Unmarshaler
ForcePseudoStateParams : encoding/json.Marshaler
*ForcePseudoStateParams : encoding/json.Unmarshaler
func ForcePseudoState(nodeID cdp.NodeID, forcedPseudoClasses []string) *ForcePseudoStateParams
GetBackgroundColorsParams [no description].
// Id of the node to collect class names.
Do executes CSS.getBackgroundColors against the provided context.
returns:
backgroundColors - The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
computedFontSize - The computed font size for this node, as a CSS computed value string (e.g. '12px').
computedFontWeight - The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetBackgroundColorsParams : github.com/goccy/go-json.Marshaler
*GetBackgroundColorsParams : github.com/goccy/go-json.Unmarshaler
GetBackgroundColorsParams : github.com/mailru/easyjson.Marshaler
*GetBackgroundColorsParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetBackgroundColorsParams : github.com/mailru/easyjson.Unmarshaler
GetBackgroundColorsParams : encoding/json.Marshaler
*GetBackgroundColorsParams : encoding/json.Unmarshaler
func GetBackgroundColors(nodeID cdp.NodeID) *GetBackgroundColorsParams
GetBackgroundColorsReturns return values.
// The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
// The computed font size for this node, as a CSS computed value string (e.g. '12px').
// The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetBackgroundColorsReturns : github.com/goccy/go-json.Marshaler
*GetBackgroundColorsReturns : github.com/goccy/go-json.Unmarshaler
GetBackgroundColorsReturns : github.com/mailru/easyjson.Marshaler
*GetBackgroundColorsReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetBackgroundColorsReturns : github.com/mailru/easyjson.Unmarshaler
GetBackgroundColorsReturns : encoding/json.Marshaler
*GetBackgroundColorsReturns : encoding/json.Unmarshaler
GetComputedStyleForNodeParams returns the computed style for a DOM node
identified by nodeId.
// Id of the node to collect class names.
Do executes CSS.getComputedStyleForNode against the provided context.
returns:
computedStyle - Computed style for the specified DOM node.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetComputedStyleForNodeParams : github.com/goccy/go-json.Marshaler
*GetComputedStyleForNodeParams : github.com/goccy/go-json.Unmarshaler
GetComputedStyleForNodeParams : github.com/mailru/easyjson.Marshaler
*GetComputedStyleForNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetComputedStyleForNodeParams : github.com/mailru/easyjson.Unmarshaler
GetComputedStyleForNodeParams : encoding/json.Marshaler
*GetComputedStyleForNodeParams : encoding/json.Unmarshaler
func GetComputedStyleForNode(nodeID cdp.NodeID) *GetComputedStyleForNodeParams
GetComputedStyleForNodeReturns return values.
// Computed style for the specified DOM node.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetComputedStyleForNodeReturns : github.com/goccy/go-json.Marshaler
*GetComputedStyleForNodeReturns : github.com/goccy/go-json.Unmarshaler
GetComputedStyleForNodeReturns : github.com/mailru/easyjson.Marshaler
*GetComputedStyleForNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetComputedStyleForNodeReturns : github.com/mailru/easyjson.Unmarshaler
GetComputedStyleForNodeReturns : encoding/json.Marshaler
*GetComputedStyleForNodeReturns : encoding/json.Unmarshaler
GetInlineStylesForNodeParams returns the styles defined inline (explicitly
in the "style" attribute and implicitly, using DOM attributes) for a DOM node
identified by nodeId.
// Id of the node to collect class names.
Do executes CSS.getInlineStylesForNode against the provided context.
returns:
inlineStyle - Inline style for the specified DOM node.
attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%").
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetInlineStylesForNodeParams : github.com/goccy/go-json.Marshaler
*GetInlineStylesForNodeParams : github.com/goccy/go-json.Unmarshaler
GetInlineStylesForNodeParams : github.com/mailru/easyjson.Marshaler
*GetInlineStylesForNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetInlineStylesForNodeParams : github.com/mailru/easyjson.Unmarshaler
GetInlineStylesForNodeParams : encoding/json.Marshaler
*GetInlineStylesForNodeParams : encoding/json.Unmarshaler
func GetInlineStylesForNode(nodeID cdp.NodeID) *GetInlineStylesForNodeParams
GetInlineStylesForNodeReturns return values.
// Attribute-defined element style (e.g. resulting from "width=20 height=100%").
// Inline style for the specified DOM node.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetInlineStylesForNodeReturns : github.com/goccy/go-json.Marshaler
*GetInlineStylesForNodeReturns : github.com/goccy/go-json.Unmarshaler
GetInlineStylesForNodeReturns : github.com/mailru/easyjson.Marshaler
*GetInlineStylesForNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetInlineStylesForNodeReturns : github.com/mailru/easyjson.Unmarshaler
GetInlineStylesForNodeReturns : encoding/json.Marshaler
*GetInlineStylesForNodeReturns : encoding/json.Unmarshaler
GetLayersForNodeParams returns all layers parsed by the rendering engine
for the tree scope of a node. Given a DOM element identified by nodeId,
getLayersForNode returns the root layer for the nearest ancestor document or
shadow root. The layer root contains the full layer tree for the tree scope
and their ordering.
// Id of the node to collect class names.
Do executes CSS.getLayersForNode against the provided context.
returns:
rootLayer
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetLayersForNodeParams : github.com/goccy/go-json.Marshaler
*GetLayersForNodeParams : github.com/goccy/go-json.Unmarshaler
GetLayersForNodeParams : github.com/mailru/easyjson.Marshaler
*GetLayersForNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetLayersForNodeParams : github.com/mailru/easyjson.Unmarshaler
GetLayersForNodeParams : encoding/json.Marshaler
*GetLayersForNodeParams : encoding/json.Unmarshaler
func GetLayersForNode(nodeID cdp.NodeID) *GetLayersForNodeParams
GetLayersForNodeReturns return values.
RootLayer *LayerData
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetLayersForNodeReturns : github.com/goccy/go-json.Marshaler
*GetLayersForNodeReturns : github.com/goccy/go-json.Unmarshaler
GetLayersForNodeReturns : github.com/mailru/easyjson.Marshaler
*GetLayersForNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetLayersForNodeReturns : github.com/mailru/easyjson.Unmarshaler
GetLayersForNodeReturns : encoding/json.Marshaler
*GetLayersForNodeReturns : encoding/json.Unmarshaler
GetMatchedStylesForNodeParams returns requested styles for a DOM node
identified by nodeId.
// Id of the node to collect class names.
Do executes CSS.getMatchedStylesForNode against the provided context.
returns:
inlineStyle - Inline style for the specified DOM node.
attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%").
matchedCSSRules - CSS rules matching this node, from all applicable stylesheets.
pseudoElements - Pseudo style matches for this node.
inherited - A chain of inherited styles (from the immediate node parent up to the DOM tree root).
inheritedPseudoElements - A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).
cssKeyframesRules - A list of CSS keyframed animations matching this node.
cssPositionFallbackRules - A list of CSS position fallbacks matching this node.
cssPropertyRules - A list of CSS at-property rules matching this node.
cssPropertyRegistrations - A list of CSS property registrations matching this node.
parentLayoutNodeID - Id of the first parent element that does not have display: contents.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetMatchedStylesForNodeParams : github.com/goccy/go-json.Marshaler
*GetMatchedStylesForNodeParams : github.com/goccy/go-json.Unmarshaler
GetMatchedStylesForNodeParams : github.com/mailru/easyjson.Marshaler
*GetMatchedStylesForNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetMatchedStylesForNodeParams : github.com/mailru/easyjson.Unmarshaler
GetMatchedStylesForNodeParams : encoding/json.Marshaler
*GetMatchedStylesForNodeParams : encoding/json.Unmarshaler
func GetMatchedStylesForNode(nodeID cdp.NodeID) *GetMatchedStylesForNodeParams
GetMatchedStylesForNodeReturns return values.
// Attribute-defined element style (e.g. resulting from "width=20 height=100%").
// A list of CSS keyframed animations matching this node.
// A list of CSS position fallbacks matching this node.
// A list of CSS property registrations matching this node.
// A list of CSS at-property rules matching this node.
// A chain of inherited styles (from the immediate node parent up to the DOM tree root).
// A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).
// Inline style for the specified DOM node.
// CSS rules matching this node, from all applicable stylesheets.
// Id of the first parent element that does not have display: contents.
// Pseudo style matches for this node.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetMatchedStylesForNodeReturns : github.com/goccy/go-json.Marshaler
*GetMatchedStylesForNodeReturns : github.com/goccy/go-json.Unmarshaler
GetMatchedStylesForNodeReturns : github.com/mailru/easyjson.Marshaler
*GetMatchedStylesForNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetMatchedStylesForNodeReturns : github.com/mailru/easyjson.Unmarshaler
GetMatchedStylesForNodeReturns : encoding/json.Marshaler
*GetMatchedStylesForNodeReturns : encoding/json.Unmarshaler
func github.com/chromedp/chromedp.MatchedStyle(sel interface{}, style **GetMatchedStylesForNodeReturns, opts ...chromedp.QueryOption) chromedp.QueryAction
GetMediaQueriesParams returns all media queries parsed by the rendering
engine.
Do executes CSS.getMediaQueries against the provided context.
returns:
medias
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetMediaQueriesParams : github.com/goccy/go-json.Marshaler
*GetMediaQueriesParams : github.com/goccy/go-json.Unmarshaler
GetMediaQueriesParams : github.com/mailru/easyjson.Marshaler
*GetMediaQueriesParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetMediaQueriesParams : github.com/mailru/easyjson.Unmarshaler
GetMediaQueriesParams : encoding/json.Marshaler
*GetMediaQueriesParams : encoding/json.Unmarshaler
func GetMediaQueries() *GetMediaQueriesParams
GetMediaQueriesReturns return values.
Medias []*Media
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetMediaQueriesReturns : github.com/goccy/go-json.Marshaler
*GetMediaQueriesReturns : github.com/goccy/go-json.Unmarshaler
GetMediaQueriesReturns : github.com/mailru/easyjson.Marshaler
*GetMediaQueriesReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetMediaQueriesReturns : github.com/mailru/easyjson.Unmarshaler
GetMediaQueriesReturns : encoding/json.Marshaler
*GetMediaQueriesReturns : encoding/json.Unmarshaler
GetPlatformFontsForNodeParams requests information about platform fonts
which we used to render child TextNodes in the given node.
// Id of the node to collect class names.
Do executes CSS.getPlatformFontsForNode against the provided context.
returns:
fonts - Usage statistics for every employed platform font.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetPlatformFontsForNodeParams : github.com/goccy/go-json.Marshaler
*GetPlatformFontsForNodeParams : github.com/goccy/go-json.Unmarshaler
GetPlatformFontsForNodeParams : github.com/mailru/easyjson.Marshaler
*GetPlatformFontsForNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetPlatformFontsForNodeParams : github.com/mailru/easyjson.Unmarshaler
GetPlatformFontsForNodeParams : encoding/json.Marshaler
*GetPlatformFontsForNodeParams : encoding/json.Unmarshaler
func GetPlatformFontsForNode(nodeID cdp.NodeID) *GetPlatformFontsForNodeParams
GetPlatformFontsForNodeReturns return values.
// Usage statistics for every employed platform font.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetPlatformFontsForNodeReturns : github.com/goccy/go-json.Marshaler
*GetPlatformFontsForNodeReturns : github.com/goccy/go-json.Unmarshaler
GetPlatformFontsForNodeReturns : github.com/mailru/easyjson.Marshaler
*GetPlatformFontsForNodeReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetPlatformFontsForNodeReturns : github.com/mailru/easyjson.Unmarshaler
GetPlatformFontsForNodeReturns : encoding/json.Marshaler
*GetPlatformFontsForNodeReturns : encoding/json.Unmarshaler
GetStyleSheetTextParams returns the current textual content for a
stylesheet.
StyleSheetID StyleSheetID
Do executes CSS.getStyleSheetText against the provided context.
returns:
text - The stylesheet text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetStyleSheetTextParams : github.com/goccy/go-json.Marshaler
*GetStyleSheetTextParams : github.com/goccy/go-json.Unmarshaler
GetStyleSheetTextParams : github.com/mailru/easyjson.Marshaler
*GetStyleSheetTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetStyleSheetTextParams : github.com/mailru/easyjson.Unmarshaler
GetStyleSheetTextParams : encoding/json.Marshaler
*GetStyleSheetTextParams : encoding/json.Unmarshaler
func GetStyleSheetText(styleSheetID StyleSheetID) *GetStyleSheetTextParams
GetStyleSheetTextReturns return values.
// The stylesheet text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetStyleSheetTextReturns : github.com/goccy/go-json.Marshaler
*GetStyleSheetTextReturns : github.com/goccy/go-json.Unmarshaler
GetStyleSheetTextReturns : github.com/mailru/easyjson.Marshaler
*GetStyleSheetTextReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetStyleSheetTextReturns : github.com/mailru/easyjson.Unmarshaler
GetStyleSheetTextReturns : encoding/json.Marshaler
*GetStyleSheetTextReturns : encoding/json.Unmarshaler
InheritedPseudoElementMatches inherited pseudo element matches from
pseudos of an ancestor node.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-InheritedPseudoElementMatches
// Matches of pseudo styles from the pseudos of an ancestor node.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
InheritedPseudoElementMatches : github.com/goccy/go-json.Marshaler
*InheritedPseudoElementMatches : github.com/goccy/go-json.Unmarshaler
InheritedPseudoElementMatches : github.com/mailru/easyjson.Marshaler
*InheritedPseudoElementMatches : github.com/mailru/easyjson.MarshalerUnmarshaler
*InheritedPseudoElementMatches : github.com/mailru/easyjson.Unmarshaler
InheritedPseudoElementMatches : encoding/json.Marshaler
*InheritedPseudoElementMatches : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
InheritedStyleEntry inherited CSS rule collection from ancestor node.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-InheritedStyleEntry
// The ancestor node's inline style, if any, in the style inheritance chain.
// Matches of CSS rules matching the ancestor node in the style inheritance chain.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
InheritedStyleEntry : github.com/goccy/go-json.Marshaler
*InheritedStyleEntry : github.com/goccy/go-json.Unmarshaler
InheritedStyleEntry : github.com/mailru/easyjson.Marshaler
*InheritedStyleEntry : github.com/mailru/easyjson.MarshalerUnmarshaler
*InheritedStyleEntry : github.com/mailru/easyjson.Unmarshaler
InheritedStyleEntry : encoding/json.Marshaler
*InheritedStyleEntry : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
KeyframeRule CSS keyframe rule representation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSKeyframeRule
// Associated key text.
// Parent stylesheet's origin.
// Associated style declaration.
// The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
KeyframeRule : github.com/goccy/go-json.Marshaler
*KeyframeRule : github.com/goccy/go-json.Unmarshaler
KeyframeRule : github.com/mailru/easyjson.Marshaler
*KeyframeRule : github.com/mailru/easyjson.MarshalerUnmarshaler
*KeyframeRule : github.com/mailru/easyjson.Unmarshaler
KeyframeRule : encoding/json.Marshaler
*KeyframeRule : encoding/json.Unmarshaler
KeyframesRule CSS keyframes rule representation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSKeyframesRule
// Animation name.
// List of keyframes.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
KeyframesRule : github.com/goccy/go-json.Marshaler
*KeyframesRule : github.com/goccy/go-json.Unmarshaler
KeyframesRule : github.com/mailru/easyjson.Marshaler
*KeyframesRule : github.com/mailru/easyjson.MarshalerUnmarshaler
*KeyframesRule : github.com/mailru/easyjson.Unmarshaler
KeyframesRule : encoding/json.Marshaler
*KeyframesRule : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
Layer CSS Layer at-rule descriptor.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSLayer
// The associated rule header range in the enclosing stylesheet (if available).
// Identifier of the stylesheet containing this object (if exists).
// Scope rule text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Layer : github.com/goccy/go-json.Marshaler
*Layer : github.com/goccy/go-json.Unmarshaler
Layer : github.com/mailru/easyjson.Marshaler
*Layer : github.com/mailru/easyjson.MarshalerUnmarshaler
*Layer : github.com/mailru/easyjson.Unmarshaler
Layer : encoding/json.Marshaler
*Layer : encoding/json.Unmarshaler
LayerData CSS Layer data.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSLayerData
// Layer name.
// Layer order. The order determines the order of the layer in the cascade order. A higher number has higher priority in the cascade order.
// Direct sub-layers
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
LayerData : github.com/goccy/go-json.Marshaler
*LayerData : github.com/goccy/go-json.Unmarshaler
LayerData : github.com/mailru/easyjson.Marshaler
*LayerData : github.com/mailru/easyjson.MarshalerUnmarshaler
*LayerData : github.com/mailru/easyjson.Unmarshaler
LayerData : encoding/json.Marshaler
*LayerData : encoding/json.Unmarshaler
func (*GetLayersForNodeParams).Do(ctx context.Context) (rootLayer *LayerData, err error)
Media CSS media rule descriptor.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSMedia
// Array of media queries.
// The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
// 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.
// URL of the document containing the media query description.
// Identifier of the stylesheet containing this object (if exists).
// Media query text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Media : github.com/goccy/go-json.Marshaler
*Media : github.com/goccy/go-json.Unmarshaler
Media : github.com/mailru/easyjson.Marshaler
*Media : github.com/mailru/easyjson.MarshalerUnmarshaler
*Media : github.com/mailru/easyjson.Unmarshaler
Media : encoding/json.Marshaler
*Media : encoding/json.Unmarshaler
func (*GetMediaQueriesParams).Do(ctx context.Context) (medias []*Media, err error)
func (*SetMediaTextParams).Do(ctx context.Context) (media *Media, err error)
MediaQuery media query descriptor.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-MediaQuery
// Whether the media query condition is satisfied.
// Array of media query expressions.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
MediaQuery : github.com/goccy/go-json.Marshaler
*MediaQuery : github.com/goccy/go-json.Unmarshaler
MediaQuery : github.com/mailru/easyjson.Marshaler
*MediaQuery : github.com/mailru/easyjson.MarshalerUnmarshaler
*MediaQuery : github.com/mailru/easyjson.Unmarshaler
MediaQuery : encoding/json.Marshaler
*MediaQuery : encoding/json.Unmarshaler
MediaQueryExpression media query expression descriptor.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-MediaQueryExpression
// Computed length of media query expression (if applicable).
// Media query expression feature.
// Media query expression units.
// Media query expression value.
// The associated range of the value text in the enclosing stylesheet (if available).
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
MediaQueryExpression : github.com/goccy/go-json.Marshaler
*MediaQueryExpression : github.com/goccy/go-json.Unmarshaler
MediaQueryExpression : github.com/mailru/easyjson.Marshaler
*MediaQueryExpression : github.com/mailru/easyjson.MarshalerUnmarshaler
*MediaQueryExpression : github.com/mailru/easyjson.Unmarshaler
MediaQueryExpression : encoding/json.Marshaler
*MediaQueryExpression : encoding/json.Unmarshaler
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSMedia
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the MediaSource as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
MediaSource : github.com/goccy/go-json.Marshaler
*MediaSource : github.com/goccy/go-json.Unmarshaler
MediaSource : github.com/mailru/easyjson.Marshaler
*MediaSource : github.com/mailru/easyjson.MarshalerUnmarshaler
*MediaSource : github.com/mailru/easyjson.Unmarshaler
MediaSource : encoding/json.Marshaler
*MediaSource : encoding/json.Unmarshaler
MediaSource : expvar.Var
MediaSource : fmt.Stringer
const MediaSourceImportRule
const MediaSourceInlineSheet
const MediaSourceLinkedSheet
const MediaSourceMediaRule
PlatformFontUsage information about amount of glyphs that were rendered
with given font.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-PlatformFontUsage
// Font's family name reported by platform.
// Amount of glyphs that were rendered with this font.
// Indicates if the font was downloaded or resolved locally.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PlatformFontUsage : github.com/goccy/go-json.Marshaler
*PlatformFontUsage : github.com/goccy/go-json.Unmarshaler
PlatformFontUsage : github.com/mailru/easyjson.Marshaler
*PlatformFontUsage : github.com/mailru/easyjson.MarshalerUnmarshaler
*PlatformFontUsage : github.com/mailru/easyjson.Unmarshaler
PlatformFontUsage : encoding/json.Marshaler
*PlatformFontUsage : encoding/json.Unmarshaler
func (*GetPlatformFontsForNodeParams).Do(ctx context.Context) (fonts []*PlatformFontUsage, err error)
PositionFallbackRule CSS position-fallback rule representation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSPositionFallbackRule
Name *Value
// List of keyframes.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PositionFallbackRule : github.com/goccy/go-json.Marshaler
*PositionFallbackRule : github.com/goccy/go-json.Unmarshaler
PositionFallbackRule : github.com/mailru/easyjson.Marshaler
*PositionFallbackRule : github.com/mailru/easyjson.MarshalerUnmarshaler
*PositionFallbackRule : github.com/mailru/easyjson.Unmarshaler
PositionFallbackRule : encoding/json.Marshaler
*PositionFallbackRule : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
Property CSS property declaration data.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSProperty
// Whether the property is disabled by the user (present for source-based properties only).
// Whether the property is implicit (implies false if absent).
// Whether the property has "!important" annotation (implies false if absent).
// Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
// The property name.
// Whether the property is understood by the browser (implies true if absent).
// The entire property range in the enclosing style declaration (if available).
// The full property text as specified in the style.
// The property value.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Property : github.com/goccy/go-json.Marshaler
*Property : github.com/goccy/go-json.Unmarshaler
Property : github.com/mailru/easyjson.Marshaler
*Property : github.com/mailru/easyjson.MarshalerUnmarshaler
*Property : github.com/mailru/easyjson.Unmarshaler
Property : encoding/json.Marshaler
*Property : encoding/json.Unmarshaler
PropertyRegistration representation of a custom property registration
through CSS.registerProperty.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSPropertyRegistration
Inherits bool
InitialValue *Value
PropertyName string
Syntax string
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PropertyRegistration : github.com/goccy/go-json.Marshaler
*PropertyRegistration : github.com/goccy/go-json.Unmarshaler
PropertyRegistration : github.com/mailru/easyjson.Marshaler
*PropertyRegistration : github.com/mailru/easyjson.MarshalerUnmarshaler
*PropertyRegistration : github.com/mailru/easyjson.Unmarshaler
PropertyRegistration : encoding/json.Marshaler
*PropertyRegistration : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
PropertyRule CSS property at-rule representation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSPropertyRule
// Parent stylesheet's origin.
// Associated property name.
// Associated style declaration.
// The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PropertyRule : github.com/goccy/go-json.Marshaler
*PropertyRule : github.com/goccy/go-json.Unmarshaler
PropertyRule : github.com/mailru/easyjson.Marshaler
*PropertyRule : github.com/mailru/easyjson.MarshalerUnmarshaler
*PropertyRule : github.com/mailru/easyjson.Unmarshaler
PropertyRule : encoding/json.Marshaler
*PropertyRule : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
PseudoElementMatches CSS rule collection for a single pseudo style.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-PseudoElementMatches
// Matches of CSS rules applicable to the pseudo style.
// Pseudo element custom ident.
// Pseudo element type.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PseudoElementMatches : github.com/goccy/go-json.Marshaler
*PseudoElementMatches : github.com/goccy/go-json.Unmarshaler
PseudoElementMatches : github.com/mailru/easyjson.Marshaler
*PseudoElementMatches : github.com/mailru/easyjson.MarshalerUnmarshaler
*PseudoElementMatches : github.com/mailru/easyjson.Unmarshaler
PseudoElementMatches : encoding/json.Marshaler
*PseudoElementMatches : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
Rule CSS rule representation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSRule
// Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.
// Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.
// Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
// Array of selectors from ancestor style rules, sorted by distance from the current rule.
// Parent stylesheet's origin.
// The array keeps the types of ancestor CSSRules from the innermost going outwards.
// @scope CSS at-rule array. The array enumerates @scope at-rules starting with the innermost one, going outwards.
// Rule selector data.
// Associated style declaration.
// The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
// @supports CSS at-rule array. The array enumerates @supports at-rules starting with the innermost one, going outwards.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Rule : github.com/goccy/go-json.Marshaler
*Rule : github.com/goccy/go-json.Unmarshaler
Rule : github.com/mailru/easyjson.Marshaler
*Rule : github.com/mailru/easyjson.MarshalerUnmarshaler
*Rule : github.com/mailru/easyjson.Unmarshaler
Rule : encoding/json.Marshaler
*Rule : encoding/json.Unmarshaler
func (*AddRuleParams).Do(ctx context.Context) (rule *Rule, err error)
RuleMatch match data for a CSS rule.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-RuleMatch
// Matching selector indices in the rule's selectorList selectors (0-based).
// CSS rule in the match.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
RuleMatch : github.com/goccy/go-json.Marshaler
*RuleMatch : github.com/goccy/go-json.Unmarshaler
RuleMatch : github.com/mailru/easyjson.Marshaler
*RuleMatch : github.com/mailru/easyjson.MarshalerUnmarshaler
*RuleMatch : github.com/mailru/easyjson.Unmarshaler
RuleMatch : encoding/json.Marshaler
*RuleMatch : encoding/json.Unmarshaler
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
RuleType enum indicating the type of a CSS rule, used to represent the
order of a style rule's ancestors. This list only contains rule types that
are collected during the ancestor rule collection.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSRuleType
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the RuleType as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
RuleType : github.com/goccy/go-json.Marshaler
*RuleType : github.com/goccy/go-json.Unmarshaler
RuleType : github.com/mailru/easyjson.Marshaler
*RuleType : github.com/mailru/easyjson.MarshalerUnmarshaler
*RuleType : github.com/mailru/easyjson.Unmarshaler
RuleType : encoding/json.Marshaler
*RuleType : encoding/json.Unmarshaler
RuleType : expvar.Var
RuleType : fmt.Stringer
const RuleTypeContainerRule
const RuleTypeLayerRule
const RuleTypeMediaRule
const RuleTypeScopeRule
const RuleTypeStyleRule
const RuleTypeSupportsRule
RuleUsage CSS coverage information.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-RuleUsage
// Offset of the end of the rule body from the beginning of the stylesheet.
// Offset of the start of the rule (including selector) from the beginning of the stylesheet.
// The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
// Indicates whether the rule was actually used by some element in the page.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
RuleUsage : github.com/goccy/go-json.Marshaler
*RuleUsage : github.com/goccy/go-json.Unmarshaler
RuleUsage : github.com/mailru/easyjson.Marshaler
*RuleUsage : github.com/mailru/easyjson.MarshalerUnmarshaler
*RuleUsage : github.com/mailru/easyjson.Unmarshaler
RuleUsage : encoding/json.Marshaler
*RuleUsage : encoding/json.Unmarshaler
func (*StopRuleUsageTrackingParams).Do(ctx context.Context) (ruleUsage []*RuleUsage, err error)
func (*TakeCoverageDeltaParams).Do(ctx context.Context) (coverage []*RuleUsage, timestamp float64, err error)
Scope CSS Scope at-rule descriptor.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSScope
// The associated rule header range in the enclosing stylesheet (if available).
// Identifier of the stylesheet containing this object (if exists).
// Scope rule text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Scope : github.com/goccy/go-json.Marshaler
*Scope : github.com/goccy/go-json.Unmarshaler
Scope : github.com/mailru/easyjson.Marshaler
*Scope : github.com/mailru/easyjson.MarshalerUnmarshaler
*Scope : github.com/mailru/easyjson.Unmarshaler
Scope : encoding/json.Marshaler
*Scope : encoding/json.Unmarshaler
func (*SetScopeTextParams).Do(ctx context.Context) (scope *Scope, err error)
SelectorList selector list data.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-SelectorList
// Selectors in the list.
// Rule selector text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SelectorList : github.com/goccy/go-json.Marshaler
*SelectorList : github.com/goccy/go-json.Unmarshaler
SelectorList : github.com/mailru/easyjson.Marshaler
*SelectorList : github.com/mailru/easyjson.MarshalerUnmarshaler
*SelectorList : github.com/mailru/easyjson.Unmarshaler
SelectorList : encoding/json.Marshaler
*SelectorList : encoding/json.Unmarshaler
func (*SetRuleSelectorParams).Do(ctx context.Context) (selectorList *SelectorList, err error)
SetContainerQueryTextParams modifies the expression of a container query.
Range *SourceRange
StyleSheetID StyleSheetID
Text string
Do executes CSS.setContainerQueryText against the provided context.
returns:
containerQuery - The resulting CSS container query rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetContainerQueryTextParams : github.com/goccy/go-json.Marshaler
*SetContainerQueryTextParams : github.com/goccy/go-json.Unmarshaler
SetContainerQueryTextParams : github.com/mailru/easyjson.Marshaler
*SetContainerQueryTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetContainerQueryTextParams : github.com/mailru/easyjson.Unmarshaler
SetContainerQueryTextParams : encoding/json.Marshaler
*SetContainerQueryTextParams : encoding/json.Unmarshaler
func SetContainerQueryText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetContainerQueryTextParams
SetContainerQueryTextReturns return values.
// The resulting CSS container query rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetContainerQueryTextReturns : github.com/goccy/go-json.Marshaler
*SetContainerQueryTextReturns : github.com/goccy/go-json.Unmarshaler
SetContainerQueryTextReturns : github.com/mailru/easyjson.Marshaler
*SetContainerQueryTextReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetContainerQueryTextReturns : github.com/mailru/easyjson.Unmarshaler
SetContainerQueryTextReturns : encoding/json.Marshaler
*SetContainerQueryTextReturns : encoding/json.Unmarshaler
SetEffectivePropertyValueForNodeParams find a rule with the given active
property for the given node and set the new value for this property.
// The element id for which to set property.
PropertyName string
Value string
Do executes CSS.setEffectivePropertyValueForNode against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.Action
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.CallAction
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.EmulateAction
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.EvaluateAction
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.KeyAction
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.MouseAction
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.NavigateAction
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.PollAction
*SetEffectivePropertyValueForNodeParams : github.com/chromedp/chromedp.QueryAction
SetEffectivePropertyValueForNodeParams : github.com/goccy/go-json.Marshaler
*SetEffectivePropertyValueForNodeParams : github.com/goccy/go-json.Unmarshaler
SetEffectivePropertyValueForNodeParams : github.com/mailru/easyjson.Marshaler
*SetEffectivePropertyValueForNodeParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetEffectivePropertyValueForNodeParams : github.com/mailru/easyjson.Unmarshaler
SetEffectivePropertyValueForNodeParams : encoding/json.Marshaler
*SetEffectivePropertyValueForNodeParams : encoding/json.Unmarshaler
func SetEffectivePropertyValueForNode(nodeID cdp.NodeID, propertyName string, value string) *SetEffectivePropertyValueForNodeParams
SetKeyframeKeyParams modifies the keyframe rule key text.
KeyText string
Range *SourceRange
StyleSheetID StyleSheetID
Do executes CSS.setKeyframeKey against the provided context.
returns:
keyText - The resulting key text after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetKeyframeKeyParams : github.com/goccy/go-json.Marshaler
*SetKeyframeKeyParams : github.com/goccy/go-json.Unmarshaler
SetKeyframeKeyParams : github.com/mailru/easyjson.Marshaler
*SetKeyframeKeyParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetKeyframeKeyParams : github.com/mailru/easyjson.Unmarshaler
SetKeyframeKeyParams : encoding/json.Marshaler
*SetKeyframeKeyParams : encoding/json.Unmarshaler
func SetKeyframeKey(styleSheetID StyleSheetID, rangeVal *SourceRange, keyText string) *SetKeyframeKeyParams
SetKeyframeKeyReturns return values.
// The resulting key text after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetKeyframeKeyReturns : github.com/goccy/go-json.Marshaler
*SetKeyframeKeyReturns : github.com/goccy/go-json.Unmarshaler
SetKeyframeKeyReturns : github.com/mailru/easyjson.Marshaler
*SetKeyframeKeyReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetKeyframeKeyReturns : github.com/mailru/easyjson.Unmarshaler
SetKeyframeKeyReturns : encoding/json.Marshaler
*SetKeyframeKeyReturns : encoding/json.Unmarshaler
SetLocalFontsEnabledParams enables/disables rendering of local CSS fonts
(enabled by default).
Enabled bool
Do executes CSS.setLocalFontsEnabled against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.Action
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.CallAction
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.EmulateAction
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.EvaluateAction
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.KeyAction
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.MouseAction
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.NavigateAction
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.PollAction
*SetLocalFontsEnabledParams : github.com/chromedp/chromedp.QueryAction
SetLocalFontsEnabledParams : github.com/goccy/go-json.Marshaler
*SetLocalFontsEnabledParams : github.com/goccy/go-json.Unmarshaler
SetLocalFontsEnabledParams : github.com/mailru/easyjson.Marshaler
*SetLocalFontsEnabledParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetLocalFontsEnabledParams : github.com/mailru/easyjson.Unmarshaler
SetLocalFontsEnabledParams : encoding/json.Marshaler
*SetLocalFontsEnabledParams : encoding/json.Unmarshaler
func SetLocalFontsEnabled(enabled bool) *SetLocalFontsEnabledParams
SetMediaTextParams modifies the rule selector.
Range *SourceRange
StyleSheetID StyleSheetID
Text string
Do executes CSS.setMediaText against the provided context.
returns:
media - The resulting CSS media rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetMediaTextParams : github.com/goccy/go-json.Marshaler
*SetMediaTextParams : github.com/goccy/go-json.Unmarshaler
SetMediaTextParams : github.com/mailru/easyjson.Marshaler
*SetMediaTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetMediaTextParams : github.com/mailru/easyjson.Unmarshaler
SetMediaTextParams : encoding/json.Marshaler
*SetMediaTextParams : encoding/json.Unmarshaler
func SetMediaText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetMediaTextParams
SetMediaTextReturns return values.
// The resulting CSS media rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetMediaTextReturns : github.com/goccy/go-json.Marshaler
*SetMediaTextReturns : github.com/goccy/go-json.Unmarshaler
SetMediaTextReturns : github.com/mailru/easyjson.Marshaler
*SetMediaTextReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetMediaTextReturns : github.com/mailru/easyjson.Unmarshaler
SetMediaTextReturns : encoding/json.Marshaler
*SetMediaTextReturns : encoding/json.Unmarshaler
SetPropertyRulePropertyNameParams modifies the property rule property
name.
PropertyName string
Range *SourceRange
StyleSheetID StyleSheetID
Do executes CSS.setPropertyRulePropertyName against the provided context.
returns:
propertyName - The resulting key text after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetPropertyRulePropertyNameParams : github.com/goccy/go-json.Marshaler
*SetPropertyRulePropertyNameParams : github.com/goccy/go-json.Unmarshaler
SetPropertyRulePropertyNameParams : github.com/mailru/easyjson.Marshaler
*SetPropertyRulePropertyNameParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetPropertyRulePropertyNameParams : github.com/mailru/easyjson.Unmarshaler
SetPropertyRulePropertyNameParams : encoding/json.Marshaler
*SetPropertyRulePropertyNameParams : encoding/json.Unmarshaler
func SetPropertyRulePropertyName(styleSheetID StyleSheetID, rangeVal *SourceRange, propertyName string) *SetPropertyRulePropertyNameParams
SetPropertyRulePropertyNameReturns return values.
// The resulting key text after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetPropertyRulePropertyNameReturns : github.com/goccy/go-json.Marshaler
*SetPropertyRulePropertyNameReturns : github.com/goccy/go-json.Unmarshaler
SetPropertyRulePropertyNameReturns : github.com/mailru/easyjson.Marshaler
*SetPropertyRulePropertyNameReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetPropertyRulePropertyNameReturns : github.com/mailru/easyjson.Unmarshaler
SetPropertyRulePropertyNameReturns : encoding/json.Marshaler
*SetPropertyRulePropertyNameReturns : encoding/json.Unmarshaler
SetRuleSelectorParams modifies the rule selector.
Range *SourceRange
Selector string
StyleSheetID StyleSheetID
Do executes CSS.setRuleSelector against the provided context.
returns:
selectorList - The resulting selector list after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetRuleSelectorParams : github.com/goccy/go-json.Marshaler
*SetRuleSelectorParams : github.com/goccy/go-json.Unmarshaler
SetRuleSelectorParams : github.com/mailru/easyjson.Marshaler
*SetRuleSelectorParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetRuleSelectorParams : github.com/mailru/easyjson.Unmarshaler
SetRuleSelectorParams : encoding/json.Marshaler
*SetRuleSelectorParams : encoding/json.Unmarshaler
func SetRuleSelector(styleSheetID StyleSheetID, rangeVal *SourceRange, selector string) *SetRuleSelectorParams
SetRuleSelectorReturns return values.
// The resulting selector list after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetRuleSelectorReturns : github.com/goccy/go-json.Marshaler
*SetRuleSelectorReturns : github.com/goccy/go-json.Unmarshaler
SetRuleSelectorReturns : github.com/mailru/easyjson.Marshaler
*SetRuleSelectorReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetRuleSelectorReturns : github.com/mailru/easyjson.Unmarshaler
SetRuleSelectorReturns : encoding/json.Marshaler
*SetRuleSelectorReturns : encoding/json.Unmarshaler
SetScopeTextParams modifies the expression of a scope at-rule.
Range *SourceRange
StyleSheetID StyleSheetID
Text string
Do executes CSS.setScopeText against the provided context.
returns:
scope - The resulting CSS Scope rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetScopeTextParams : github.com/goccy/go-json.Marshaler
*SetScopeTextParams : github.com/goccy/go-json.Unmarshaler
SetScopeTextParams : github.com/mailru/easyjson.Marshaler
*SetScopeTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetScopeTextParams : github.com/mailru/easyjson.Unmarshaler
SetScopeTextParams : encoding/json.Marshaler
*SetScopeTextParams : encoding/json.Unmarshaler
func SetScopeText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetScopeTextParams
SetScopeTextReturns return values.
// The resulting CSS Scope rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetScopeTextReturns : github.com/goccy/go-json.Marshaler
*SetScopeTextReturns : github.com/goccy/go-json.Unmarshaler
SetScopeTextReturns : github.com/mailru/easyjson.Marshaler
*SetScopeTextReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetScopeTextReturns : github.com/mailru/easyjson.Unmarshaler
SetScopeTextReturns : encoding/json.Marshaler
*SetScopeTextReturns : encoding/json.Unmarshaler
SetStyleSheetTextParams sets the new stylesheet text.
StyleSheetID StyleSheetID
Text string
Do executes CSS.setStyleSheetText against the provided context.
returns:
sourceMapURL - URL of source map associated with script (if any).
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetStyleSheetTextParams : github.com/goccy/go-json.Marshaler
*SetStyleSheetTextParams : github.com/goccy/go-json.Unmarshaler
SetStyleSheetTextParams : github.com/mailru/easyjson.Marshaler
*SetStyleSheetTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetStyleSheetTextParams : github.com/mailru/easyjson.Unmarshaler
SetStyleSheetTextParams : encoding/json.Marshaler
*SetStyleSheetTextParams : encoding/json.Unmarshaler
func SetStyleSheetText(styleSheetID StyleSheetID, text string) *SetStyleSheetTextParams
SetStyleSheetTextReturns return values.
// URL of source map associated with script (if any).
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetStyleSheetTextReturns : github.com/goccy/go-json.Marshaler
*SetStyleSheetTextReturns : github.com/goccy/go-json.Unmarshaler
SetStyleSheetTextReturns : github.com/mailru/easyjson.Marshaler
*SetStyleSheetTextReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetStyleSheetTextReturns : github.com/mailru/easyjson.Unmarshaler
SetStyleSheetTextReturns : encoding/json.Marshaler
*SetStyleSheetTextReturns : encoding/json.Unmarshaler
SetStyleTextsParams applies specified style edits one after another in the
given order.
Edits []*StyleDeclarationEdit
Do executes CSS.setStyleTexts against the provided context.
returns:
styles - The resulting styles after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetStyleTextsParams : github.com/goccy/go-json.Marshaler
*SetStyleTextsParams : github.com/goccy/go-json.Unmarshaler
SetStyleTextsParams : github.com/mailru/easyjson.Marshaler
*SetStyleTextsParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetStyleTextsParams : github.com/mailru/easyjson.Unmarshaler
SetStyleTextsParams : encoding/json.Marshaler
*SetStyleTextsParams : encoding/json.Unmarshaler
func SetStyleTexts(edits []*StyleDeclarationEdit) *SetStyleTextsParams
SetStyleTextsReturns return values.
// The resulting styles after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetStyleTextsReturns : github.com/goccy/go-json.Marshaler
*SetStyleTextsReturns : github.com/goccy/go-json.Unmarshaler
SetStyleTextsReturns : github.com/mailru/easyjson.Marshaler
*SetStyleTextsReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetStyleTextsReturns : github.com/mailru/easyjson.Unmarshaler
SetStyleTextsReturns : encoding/json.Marshaler
*SetStyleTextsReturns : encoding/json.Unmarshaler
SetSupportsTextParams modifies the expression of a supports at-rule.
Range *SourceRange
StyleSheetID StyleSheetID
Text string
Do executes CSS.setSupportsText against the provided context.
returns:
supports - The resulting CSS Supports rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetSupportsTextParams : github.com/goccy/go-json.Marshaler
*SetSupportsTextParams : github.com/goccy/go-json.Unmarshaler
SetSupportsTextParams : github.com/mailru/easyjson.Marshaler
*SetSupportsTextParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetSupportsTextParams : github.com/mailru/easyjson.Unmarshaler
SetSupportsTextParams : encoding/json.Marshaler
*SetSupportsTextParams : encoding/json.Unmarshaler
func SetSupportsText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetSupportsTextParams
SetSupportsTextReturns return values.
// The resulting CSS Supports rule after modification.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SetSupportsTextReturns : github.com/goccy/go-json.Marshaler
*SetSupportsTextReturns : github.com/goccy/go-json.Unmarshaler
SetSupportsTextReturns : github.com/mailru/easyjson.Marshaler
*SetSupportsTextReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetSupportsTextReturns : github.com/mailru/easyjson.Unmarshaler
SetSupportsTextReturns : encoding/json.Marshaler
*SetSupportsTextReturns : encoding/json.Unmarshaler
ShorthandEntry [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-ShorthandEntry
// Whether the property has "!important" annotation (implies false if absent).
// Shorthand name.
// Shorthand value.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
ShorthandEntry : github.com/goccy/go-json.Marshaler
*ShorthandEntry : github.com/goccy/go-json.Unmarshaler
ShorthandEntry : github.com/mailru/easyjson.Marshaler
*ShorthandEntry : github.com/mailru/easyjson.MarshalerUnmarshaler
*ShorthandEntry : github.com/mailru/easyjson.Unmarshaler
ShorthandEntry : encoding/json.Marshaler
*ShorthandEntry : encoding/json.Unmarshaler
SourceRange text range within a resource. All numbers are zero-based.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-SourceRange
// End column of range (exclusive).
// End line of range
// Start column of range (inclusive).
// Start line of range.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
SourceRange : github.com/goccy/go-json.Marshaler
*SourceRange : github.com/goccy/go-json.Unmarshaler
SourceRange : github.com/mailru/easyjson.Marshaler
*SourceRange : github.com/mailru/easyjson.MarshalerUnmarshaler
*SourceRange : github.com/mailru/easyjson.Unmarshaler
SourceRange : encoding/json.Marshaler
*SourceRange : encoding/json.Unmarshaler
func AddRule(styleSheetID StyleSheetID, ruleText string, location *SourceRange) *AddRuleParams
func SetContainerQueryText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetContainerQueryTextParams
func SetKeyframeKey(styleSheetID StyleSheetID, rangeVal *SourceRange, keyText string) *SetKeyframeKeyParams
func SetMediaText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetMediaTextParams
func SetPropertyRulePropertyName(styleSheetID StyleSheetID, rangeVal *SourceRange, propertyName string) *SetPropertyRulePropertyNameParams
func SetRuleSelector(styleSheetID StyleSheetID, rangeVal *SourceRange, selector string) *SetRuleSelectorParams
func SetScopeText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetScopeTextParams
func SetSupportsText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetSupportsTextParams
Specificity specificity:
https://drafts.csswg.org/selectors/#specificity-rules.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-Specificity
// The a component, which represents the number of ID selectors.
// The b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.
// The c component, which represents the number of type selectors and pseudo-elements.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Specificity : github.com/goccy/go-json.Marshaler
*Specificity : github.com/goccy/go-json.Unmarshaler
Specificity : github.com/mailru/easyjson.Marshaler
*Specificity : github.com/mailru/easyjson.MarshalerUnmarshaler
*Specificity : github.com/mailru/easyjson.Unmarshaler
Specificity : encoding/json.Marshaler
*Specificity : encoding/json.Unmarshaler
StartRuleUsageTrackingParams enables the selector recording.
Do executes CSS.startRuleUsageTracking against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.Action
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.CallAction
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.EmulateAction
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.EvaluateAction
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.KeyAction
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.MouseAction
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.NavigateAction
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.PollAction
*StartRuleUsageTrackingParams : github.com/chromedp/chromedp.QueryAction
StartRuleUsageTrackingParams : github.com/goccy/go-json.Marshaler
*StartRuleUsageTrackingParams : github.com/goccy/go-json.Unmarshaler
StartRuleUsageTrackingParams : github.com/mailru/easyjson.Marshaler
*StartRuleUsageTrackingParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*StartRuleUsageTrackingParams : github.com/mailru/easyjson.Unmarshaler
StartRuleUsageTrackingParams : encoding/json.Marshaler
*StartRuleUsageTrackingParams : encoding/json.Unmarshaler
func StartRuleUsageTracking() *StartRuleUsageTrackingParams
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).
Do executes CSS.stopRuleUsageTracking against the provided context.
returns:
ruleUsage
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
StopRuleUsageTrackingParams : github.com/goccy/go-json.Marshaler
*StopRuleUsageTrackingParams : github.com/goccy/go-json.Unmarshaler
StopRuleUsageTrackingParams : github.com/mailru/easyjson.Marshaler
*StopRuleUsageTrackingParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*StopRuleUsageTrackingParams : github.com/mailru/easyjson.Unmarshaler
StopRuleUsageTrackingParams : encoding/json.Marshaler
*StopRuleUsageTrackingParams : encoding/json.Unmarshaler
func StopRuleUsageTracking() *StopRuleUsageTrackingParams
StopRuleUsageTrackingReturns return values.
RuleUsage []*RuleUsage
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
StopRuleUsageTrackingReturns : github.com/goccy/go-json.Marshaler
*StopRuleUsageTrackingReturns : github.com/goccy/go-json.Unmarshaler
StopRuleUsageTrackingReturns : github.com/mailru/easyjson.Marshaler
*StopRuleUsageTrackingReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*StopRuleUsageTrackingReturns : github.com/mailru/easyjson.Unmarshaler
StopRuleUsageTrackingReturns : encoding/json.Marshaler
*StopRuleUsageTrackingReturns : encoding/json.Unmarshaler
Style CSS style representation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSStyle
// CSS properties in the style.
// Style declaration text (if available).
// Style declaration range in the enclosing stylesheet (if available).
// Computed values for all shorthands found in the style.
// The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Style : github.com/goccy/go-json.Marshaler
*Style : github.com/goccy/go-json.Unmarshaler
Style : github.com/mailru/easyjson.Marshaler
*Style : github.com/mailru/easyjson.MarshalerUnmarshaler
*Style : github.com/mailru/easyjson.Unmarshaler
Style : encoding/json.Marshaler
*Style : encoding/json.Unmarshaler
func (*GetInlineStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, err error)
func (*GetInlineStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, err error)
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
func (*GetMatchedStylesForNodeParams).Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, inheritedPseudoElements []*InheritedPseudoElementMatches, cssKeyframesRules []*KeyframesRule, cssPositionFallbackRules []*PositionFallbackRule, cssPropertyRules []*PropertyRule, cssPropertyRegistrations []*PropertyRegistration, parentLayoutNodeID cdp.NodeID, err error)
func (*SetStyleTextsParams).Do(ctx context.Context) (styles []*Style, err error)
StyleDeclarationEdit a descriptor of operation to mutate style declaration
text.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-StyleDeclarationEdit
Range *SourceRange
StyleSheetID StyleSheetID
Text string
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
StyleDeclarationEdit : github.com/goccy/go-json.Marshaler
*StyleDeclarationEdit : github.com/goccy/go-json.Unmarshaler
StyleDeclarationEdit : github.com/mailru/easyjson.Marshaler
*StyleDeclarationEdit : github.com/mailru/easyjson.MarshalerUnmarshaler
*StyleDeclarationEdit : github.com/mailru/easyjson.Unmarshaler
StyleDeclarationEdit : encoding/json.Marshaler
*StyleDeclarationEdit : encoding/json.Unmarshaler
func SetStyleTexts(edits []*StyleDeclarationEdit) *SetStyleTextsParams
StyleSheetHeader CSS stylesheet metainformation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSStyleSheetHeader
// Denotes whether the stylesheet is disabled.
// Column offset of the end of the stylesheet within the resource (zero based).
// Line offset of the end of the stylesheet within the resource (zero based).
// Owner frame identifier.
// Whether the sourceURL field value comes from the sourceURL comment.
// True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
// Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
// Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
// Size of the content (in characters).
// If the style sheet was loaded from a network resource, this indicates when the resource failed to load
// Stylesheet origin.
// The backend id for the owner node of the stylesheet.
// URL of source map associated with the stylesheet (if any).
// Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported as a CSS module script).
// Column offset of the stylesheet within the resource (zero based).
// Line offset of the stylesheet within the resource (zero based).
// The stylesheet identifier.
// Stylesheet title.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
StyleSheetHeader : github.com/goccy/go-json.Marshaler
*StyleSheetHeader : github.com/goccy/go-json.Unmarshaler
StyleSheetHeader : github.com/mailru/easyjson.Marshaler
*StyleSheetHeader : github.com/mailru/easyjson.MarshalerUnmarshaler
*StyleSheetHeader : github.com/mailru/easyjson.Unmarshaler
StyleSheetHeader : encoding/json.Marshaler
*StyleSheetHeader : encoding/json.Unmarshaler
StyleSheetID [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-StyleSheetId
String returns the StyleSheetID as string value.
StyleSheetID : expvar.Var
StyleSheetID : fmt.Stringer
func (*CreateStyleSheetParams).Do(ctx context.Context) (styleSheetID StyleSheetID, err error)
func AddRule(styleSheetID StyleSheetID, ruleText string, location *SourceRange) *AddRuleParams
func CollectClassNames(styleSheetID StyleSheetID) *CollectClassNamesParams
func GetStyleSheetText(styleSheetID StyleSheetID) *GetStyleSheetTextParams
func SetContainerQueryText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetContainerQueryTextParams
func SetKeyframeKey(styleSheetID StyleSheetID, rangeVal *SourceRange, keyText string) *SetKeyframeKeyParams
func SetMediaText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetMediaTextParams
func SetPropertyRulePropertyName(styleSheetID StyleSheetID, rangeVal *SourceRange, propertyName string) *SetPropertyRulePropertyNameParams
func SetRuleSelector(styleSheetID StyleSheetID, rangeVal *SourceRange, selector string) *SetRuleSelectorParams
func SetScopeText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetScopeTextParams
func SetStyleSheetText(styleSheetID StyleSheetID, text string) *SetStyleSheetTextParams
func SetSupportsText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetSupportsTextParams
StyleSheetOrigin stylesheet type: "injected" for stylesheets injected via
extension, "user-agent" for user-agent stylesheets, "inspector" for
stylesheets created by the inspector (i.e. those holding the "via inspector"
rules), "regular" for regular stylesheets.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-StyleSheetOrigin
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the StyleSheetOrigin as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
StyleSheetOrigin : github.com/goccy/go-json.Marshaler
*StyleSheetOrigin : github.com/goccy/go-json.Unmarshaler
StyleSheetOrigin : github.com/mailru/easyjson.Marshaler
*StyleSheetOrigin : github.com/mailru/easyjson.MarshalerUnmarshaler
*StyleSheetOrigin : github.com/mailru/easyjson.Unmarshaler
StyleSheetOrigin : encoding/json.Marshaler
*StyleSheetOrigin : encoding/json.Unmarshaler
StyleSheetOrigin : expvar.Var
StyleSheetOrigin : fmt.Stringer
const StyleSheetOriginInjected
const StyleSheetOriginInspector
const StyleSheetOriginRegular
const StyleSheetOriginUserAgent
Supports CSS Supports at-rule descriptor.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSSupports
// Whether the supports condition is satisfied.
// The associated rule header range in the enclosing stylesheet (if available).
// Identifier of the stylesheet containing this object (if exists).
// Supports rule text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Supports : github.com/goccy/go-json.Marshaler
*Supports : github.com/goccy/go-json.Unmarshaler
Supports : github.com/mailru/easyjson.Marshaler
*Supports : github.com/mailru/easyjson.MarshalerUnmarshaler
*Supports : github.com/mailru/easyjson.Unmarshaler
Supports : encoding/json.Marshaler
*Supports : encoding/json.Unmarshaler
func (*SetSupportsTextParams).Do(ctx context.Context) (supports *Supports, err error)
TakeComputedStyleUpdatesParams polls the next batch of computed style
updates.
Do executes CSS.takeComputedStyleUpdates against the provided context.
returns:
nodeIDs - The list of node Ids that have their tracked computed styles updated.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
TakeComputedStyleUpdatesParams : github.com/goccy/go-json.Marshaler
*TakeComputedStyleUpdatesParams : github.com/goccy/go-json.Unmarshaler
TakeComputedStyleUpdatesParams : github.com/mailru/easyjson.Marshaler
*TakeComputedStyleUpdatesParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*TakeComputedStyleUpdatesParams : github.com/mailru/easyjson.Unmarshaler
TakeComputedStyleUpdatesParams : encoding/json.Marshaler
*TakeComputedStyleUpdatesParams : encoding/json.Unmarshaler
func TakeComputedStyleUpdates() *TakeComputedStyleUpdatesParams
TakeComputedStyleUpdatesReturns return values.
// Resulting nodes.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
TakeComputedStyleUpdatesReturns : github.com/goccy/go-json.Marshaler
*TakeComputedStyleUpdatesReturns : github.com/goccy/go-json.Unmarshaler
TakeComputedStyleUpdatesReturns : github.com/mailru/easyjson.Marshaler
*TakeComputedStyleUpdatesReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*TakeComputedStyleUpdatesReturns : github.com/mailru/easyjson.Unmarshaler
TakeComputedStyleUpdatesReturns : encoding/json.Marshaler
*TakeComputedStyleUpdatesReturns : encoding/json.Unmarshaler
TakeCoverageDeltaParams obtain list of rules that became used since last
call to this method (or since start of coverage instrumentation).
Do executes CSS.takeCoverageDelta against the provided context.
returns:
coverage
timestamp - Monotonically increasing time, in seconds.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
TakeCoverageDeltaParams : github.com/goccy/go-json.Marshaler
*TakeCoverageDeltaParams : github.com/goccy/go-json.Unmarshaler
TakeCoverageDeltaParams : github.com/mailru/easyjson.Marshaler
*TakeCoverageDeltaParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*TakeCoverageDeltaParams : github.com/mailru/easyjson.Unmarshaler
TakeCoverageDeltaParams : encoding/json.Marshaler
*TakeCoverageDeltaParams : encoding/json.Unmarshaler
func TakeCoverageDelta() *TakeCoverageDeltaParams
TakeCoverageDeltaReturns return values.
Coverage []*RuleUsage
// Monotonically increasing time, in seconds.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
TakeCoverageDeltaReturns : github.com/goccy/go-json.Marshaler
*TakeCoverageDeltaReturns : github.com/goccy/go-json.Unmarshaler
TakeCoverageDeltaReturns : github.com/mailru/easyjson.Marshaler
*TakeCoverageDeltaReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*TakeCoverageDeltaReturns : github.com/mailru/easyjson.Unmarshaler
TakeCoverageDeltaReturns : encoding/json.Marshaler
*TakeCoverageDeltaReturns : encoding/json.Unmarshaler
TrackComputedStyleUpdatesParams starts tracking the given computed styles
for updates. The specified array of properties replaces the one previously
specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates
to retrieve the list of nodes that had properties modified. The changes to
computed style properties are only tracked for nodes pushed to the front-end
by the DOM agent. If no changes to the tracked properties occur after the
node has been pushed to the front-end, no updates will be issued for the
node.
PropertiesToTrack []*ComputedStyleProperty
Do executes CSS.trackComputedStyleUpdates against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.Action
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.CallAction
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.EmulateAction
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.EvaluateAction
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.KeyAction
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.MouseAction
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.NavigateAction
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.PollAction
*TrackComputedStyleUpdatesParams : github.com/chromedp/chromedp.QueryAction
TrackComputedStyleUpdatesParams : github.com/goccy/go-json.Marshaler
*TrackComputedStyleUpdatesParams : github.com/goccy/go-json.Unmarshaler
TrackComputedStyleUpdatesParams : github.com/mailru/easyjson.Marshaler
*TrackComputedStyleUpdatesParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*TrackComputedStyleUpdatesParams : github.com/mailru/easyjson.Unmarshaler
TrackComputedStyleUpdatesParams : encoding/json.Marshaler
*TrackComputedStyleUpdatesParams : encoding/json.Unmarshaler
func TrackComputedStyleUpdates(propertiesToTrack []*ComputedStyleProperty) *TrackComputedStyleUpdatesParams
TryRule CSS try rule representation.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSTryRule
// Parent stylesheet's origin.
// Associated style declaration.
// The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
TryRule : github.com/goccy/go-json.Marshaler
*TryRule : github.com/goccy/go-json.Unmarshaler
TryRule : github.com/mailru/easyjson.Marshaler
*TryRule : github.com/mailru/easyjson.MarshalerUnmarshaler
*TryRule : github.com/mailru/easyjson.Unmarshaler
TryRule : encoding/json.Marshaler
*TryRule : encoding/json.Unmarshaler
Value data for a simple selector (these are delimited by commas in a
selector list).
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-Value
// Value range in the underlying resource (if available).
// Specificity of the selector.
// Value text.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Value : github.com/goccy/go-json.Marshaler
*Value : github.com/goccy/go-json.Unmarshaler
Value : github.com/mailru/easyjson.Marshaler
*Value : github.com/mailru/easyjson.MarshalerUnmarshaler
*Value : github.com/mailru/easyjson.Unmarshaler
Value : encoding/json.Marshaler
*Value : encoding/json.Unmarshaler
func (*SetKeyframeKeyParams).Do(ctx context.Context) (keyText *Value, err error)
func (*SetPropertyRulePropertyNameParams).Do(ctx context.Context) (propertyName *Value, err error)
Package-Level Functions (total 30)
AddRule inserts a new rule with the given ruleText in a stylesheet with
given styleSheetId, at the position specified by location.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-addRule
parameters:
styleSheetID - The css style sheet identifier where a new rule should be inserted.
ruleText - The text of a new rule.
location - Text position of a new rule in the target style sheet.
CollectClassNames returns all class names from specified stylesheet.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-collectClassNames
parameters:
styleSheetID
CreateStyleSheet creates a new special "via-inspector" stylesheet in the
frame with given frameId.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-createStyleSheet
parameters:
frameID - Identifier of the frame where "via-inspector" stylesheet should be created.
Disable disables the CSS agent for the given page.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-disable
Enable enables the CSS agent for the given page. Clients should not assume
that the CSS agent has been enabled until the result of this command is
received.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-enable
ForcePseudoState ensures that the given node will have specified
pseudo-classes whenever its style is computed by the browser.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-forcePseudoState
parameters:
nodeID - The element id for which to force the pseudo state.
forcedPseudoClasses - Element pseudo classes to force when computing the element's style.
GetBackgroundColors [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getBackgroundColors
parameters:
nodeID - Id of the node to get background colors for.
GetComputedStyleForNode returns the computed style for a DOM node
identified by nodeId.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getComputedStyleForNode
parameters:
nodeID
GetInlineStylesForNode returns the styles defined inline (explicitly in
the "style" attribute and implicitly, using DOM attributes) for a DOM node
identified by nodeId.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getInlineStylesForNode
parameters:
nodeID
GetLayersForNode returns all layers parsed by the rendering engine for the
tree scope of a node. Given a DOM element identified by nodeId,
getLayersForNode returns the root layer for the nearest ancestor document or
shadow root. The layer root contains the full layer tree for the tree scope
and their ordering.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getLayersForNode
parameters:
nodeID
GetMatchedStylesForNode returns requested styles for a DOM node identified
by nodeId.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getMatchedStylesForNode
parameters:
nodeID
GetMediaQueries returns all media queries parsed by the rendering engine.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getMediaQueries
GetPlatformFontsForNode requests information about platform fonts which we
used to render child TextNodes in the given node.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getPlatformFontsForNode
parameters:
nodeID
GetStyleSheetText returns the current textual content for a stylesheet.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getStyleSheetText
parameters:
styleSheetID
SetContainerQueryText modifies the expression of a container query.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setContainerQueryText
parameters:
styleSheetID
range
text
SetEffectivePropertyValueForNode find a rule with the given active
property for the given node and set the new value for this property.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setEffectivePropertyValueForNode
parameters:
nodeID - The element id for which to set property.
propertyName
value
SetKeyframeKey modifies the keyframe rule key text.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setKeyframeKey
parameters:
styleSheetID
range
keyText
SetLocalFontsEnabled enables/disables rendering of local CSS fonts
(enabled by default).
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setLocalFontsEnabled
parameters:
enabled - Whether rendering of local fonts is enabled.
SetMediaText modifies the rule selector.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setMediaText
parameters:
styleSheetID
range
text
SetPropertyRulePropertyName modifies the property rule property name.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setPropertyRulePropertyName
parameters:
styleSheetID
range
propertyName
SetRuleSelector modifies the rule selector.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setRuleSelector
parameters:
styleSheetID
range
selector
SetScopeText modifies the expression of a scope at-rule.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setScopeText
parameters:
styleSheetID
range
text
SetStyleSheetText sets the new stylesheet text.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setStyleSheetText
parameters:
styleSheetID
text
SetStyleTexts applies specified style edits one after another in the given
order.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setStyleTexts
parameters:
edits
SetSupportsText modifies the expression of a supports at-rule.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setSupportsText
parameters:
styleSheetID
range
text
StartRuleUsageTracking enables the selector recording.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-startRuleUsageTracking
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).
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-stopRuleUsageTracking
TakeComputedStyleUpdates polls the next batch of computed style updates.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-takeComputedStyleUpdates
TakeCoverageDelta obtain list of rules that became used since last call to
this method (or since start of coverage instrumentation).
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-takeCoverageDelta
TrackComputedStyleUpdates starts tracking the given computed styles for
updates. The specified array of properties replaces the one previously
specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates
to retrieve the list of nodes that had properties modified. The changes to
computed style properties are only tracked for nodes pushed to the front-end
by the DOM agent. If no changes to the tracked properties occur after the
node has been pushed to the front-end, no updates will be issued for the
node.
See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-trackComputedStyleUpdates
parameters:
propertiesToTrack
Package-Level Constants (total 44)
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.
StyleSheetOrigin values.
StyleSheetOrigin values.
StyleSheetOrigin values.
StyleSheetOrigin values.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |