Table of Contents

Namespace OpenQA.Selenium.DevTools.V146.CSS

Classes

AddRuleCommandResponse

Response for Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

AddRuleCommandSettings

Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

CSSAdapter

Represents an adapter for the CSS domain to simplify the command interface.

CSSAnimationStyle

CSS style coming from animations with the name of the animation.

CSSAtRule

CSS generic @rule representation.

CSSComputedStyleProperty

CSSComputedStyleProperty

CSSContainerQuery

CSS container query rule descriptor.

CSSFunctionConditionNode

CSS function conditional block representation.

CSSFunctionNode

Section of the body of a CSS function rule.

CSSFunctionParameter

CSS function argument representation.

CSSFunctionRule

CSS function at-rule representation.

CSSKeyframeRule

CSS keyframe rule representation.

CSSKeyframesRule

CSS keyframes rule representation.

CSSLayer

CSS Layer at-rule descriptor.

CSSLayerData

CSS Layer data.

CSSMedia

CSS media rule descriptor.

CSSPositionTryRule

CSS @position-try rule representation.

CSSProperty

CSS property declaration data.

CSSPropertyRegistration

Representation of a custom property registration through CSS.registerProperty

CSSPropertyRule

CSS property at-rule representation.

CSSRule

CSS rule representation.

CSSScope

CSS Scope at-rule descriptor.

CSSStartingStyle

CSS Starting Style at-rule descriptor.

CSSStyle

CSS style representation.

CSSStyleSheetHeader

CSS stylesheet metainformation.

CSSSupports

CSS Supports at-rule descriptor.

CSSTryRule

CSS try rule representation.

CollectClassNamesCommandResponse

Response for Returns all class names from specified stylesheet.

CollectClassNamesCommandSettings

Returns all class names from specified stylesheet.

ComputedStyleExtraFields

ComputedStyleExtraFields

ComputedStyleUpdatedEventArgs

ComputedStyleUpdated

CreateStyleSheetCommandResponse

Response for Creates a new special "via-inspector" stylesheet in the frame with given frameId.

CreateStyleSheetCommandSettings

Creates a new special "via-inspector" stylesheet in the frame with given frameId.

DisableCommandResponse

Response for Disables the CSS agent for the given page.

DisableCommandSettings

Disables the CSS agent for the given page.

EnableCommandResponse

Response for 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.

EnableCommandSettings

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.

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.

FontVariationAxis

Information about font variation axes for variable fonts

FontsUpdatedEventArgs

Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font.

ForcePseudoStateCommandResponse

Response for Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.

ForcePseudoStateCommandSettings

Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.

ForceStartingStyleCommandResponse

Response for Ensures that the given node is in its starting-style state.

ForceStartingStyleCommandSettings

Ensures that the given node is in its starting-style state.

GetAnimatedStylesForNodeCommandResponse

Response for Returns the styles coming from animations & transitions including the animation & transition styles coming from inheritance chain.

GetAnimatedStylesForNodeCommandSettings

Returns the styles coming from animations & transitions including the animation & transition styles coming from inheritance chain.

GetBackgroundColorsCommandResponse

Response for GetBackgroundColors

GetBackgroundColorsCommandSettings

GetBackgroundColors

GetComputedStyleForNodeCommandResponse

Response for Returns the computed style for a DOM node identified by nodeId.

GetComputedStyleForNodeCommandSettings

Returns the computed style for a DOM node identified by nodeId.

GetEnvironmentVariablesCommandResponse

Response for Returns the values of the default UA-defined environment variables used in env()

GetEnvironmentVariablesCommandSettings

Returns the values of the default UA-defined environment variables used in env()

GetInlineStylesForNodeCommandResponse

Response for Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.

GetInlineStylesForNodeCommandSettings

Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.

GetLayersForNodeCommandResponse

Response for 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.

GetLayersForNodeCommandSettings

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.

GetLocationForSelectorCommandResponse

Response for Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet.

GetLocationForSelectorCommandSettings

Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet.

GetLonghandPropertiesCommandResponse

Response for GetLonghandProperties

GetLonghandPropertiesCommandSettings

GetLonghandProperties

GetMatchedStylesForNodeCommandResponse

Response for Returns requested styles for a DOM node identified by nodeId.

GetMatchedStylesForNodeCommandSettings

Returns requested styles for a DOM node identified by nodeId.

GetMediaQueriesCommandResponse

Response for Returns all media queries parsed by the rendering engine.

GetMediaQueriesCommandSettings

Returns all media queries parsed by the rendering engine.

GetPlatformFontsForNodeCommandResponse

Response for Requests information about platform fonts which we used to render child TextNodes in the given node.

GetPlatformFontsForNodeCommandSettings

Requests information about platform fonts which we used to render child TextNodes in the given node.

GetStyleSheetTextCommandResponse

Response for Returns the current textual content for a stylesheet.

GetStyleSheetTextCommandSettings

Returns the current textual content for a stylesheet.

InheritedAnimatedStyleEntry

Inherited CSS style collection for animated styles from ancestor node.

InheritedPseudoElementMatches

Inherited pseudo element matches from pseudos of an ancestor node.

InheritedStyleEntry

Inherited CSS rule collection from ancestor node.

MediaQuery

Media query descriptor.

MediaQueryExpression

Media query expression descriptor.

MediaQueryResultChangedEventArgs

Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features.

PlatformFontUsage

Information about amount of glyphs that were rendered with given font.

PseudoElementMatches

CSS rule collection for a single pseudo style.

ResolveValuesCommandResponse

Response for Resolve the specified values in the context of the provided element. For example, a value of '1em' is evaluated according to the computed 'font-size' of the element and a value 'calc(1px + 2px)' will be resolved to '3px'. If the propertyName was specified the values are resolved as if they were property's declaration. If a value cannot be parsed according to the provided property syntax, the value is parsed using combined syntax as if null propertyName was provided. If the value cannot be resolved even then, return the provided value without any changes. Note: this function currently does not resolve CSS random() function, it returns unmodified random() function parts.`

ResolveValuesCommandSettings

Resolve the specified values in the context of the provided element. For example, a value of '1em' is evaluated according to the computed 'font-size' of the element and a value 'calc(1px + 2px)' will be resolved to '3px'. If the propertyName was specified the values are resolved as if they were property's declaration. If a value cannot be parsed according to the provided property syntax, the value is parsed using combined syntax as if null propertyName was provided. If the value cannot be resolved even then, return the provided value without any changes. Note: this function currently does not resolve CSS random() function, it returns unmodified random() function parts.`

RuleMatch

Match data for a CSS rule.

RuleUsage

CSS coverage information.

SelectorList

Selector list data.

SetContainerQueryTextCommandResponse

Response for Modifies the expression of a container query.

SetContainerQueryTextCommandSettings

Modifies the expression of a container query.

SetEffectivePropertyValueForNodeCommandResponse

Response for Find a rule with the given active property for the given node and set the new value for this property

SetEffectivePropertyValueForNodeCommandSettings

Find a rule with the given active property for the given node and set the new value for this property

SetKeyframeKeyCommandResponse

Response for Modifies the keyframe rule key text.

SetKeyframeKeyCommandSettings

Modifies the keyframe rule key text.

SetLocalFontsEnabledCommandResponse

Response for Enables/disables rendering of local CSS fonts (enabled by default).

SetLocalFontsEnabledCommandSettings

Enables/disables rendering of local CSS fonts (enabled by default).

SetMediaTextCommandResponse

Response for Modifies the rule selector.

SetMediaTextCommandSettings

Modifies the rule selector.

SetPropertyRulePropertyNameCommandResponse

Response for Modifies the property rule property name.

SetPropertyRulePropertyNameCommandSettings

Modifies the property rule property name.

SetRuleSelectorCommandResponse

Response for Modifies the rule selector.

SetRuleSelectorCommandSettings

Modifies the rule selector.

SetScopeTextCommandResponse

Response for Modifies the expression of a scope at-rule.

SetScopeTextCommandSettings

Modifies the expression of a scope at-rule.

SetStyleSheetTextCommandResponse

Response for Sets the new stylesheet text.

SetStyleSheetTextCommandSettings

Sets the new stylesheet text.

SetStyleTextsCommandResponse

Response for Applies specified style edits one after another in the given order.

SetStyleTextsCommandSettings

Applies specified style edits one after another in the given order.

SetSupportsTextCommandResponse

Response for Modifies the expression of a supports at-rule.

SetSupportsTextCommandSettings

Modifies the expression of a supports at-rule.

ShorthandEntry

ShorthandEntry

SourceRange

Text range within a resource. All numbers are zero-based.

Specificity

Specificity: https://drafts.csswg.org/selectors/#specificity-rules

StartRuleUsageTrackingCommandResponse

Response for Enables the selector recording.

StartRuleUsageTrackingCommandSettings

Enables the selector recording.

StopRuleUsageTrackingCommandResponse

Response for Stop tracking rule usage and return the list of rules that were used since last call to takeCoverageDelta (or since start of coverage instrumentation).

StopRuleUsageTrackingCommandSettings

Stop tracking rule usage and return the list of rules that were used since last call to takeCoverageDelta (or since start of coverage instrumentation).

StyleDeclarationEdit

A descriptor of operation to mutate style declaration text.

StyleSheetAddedEventArgs

Fired whenever an active document stylesheet is added.

StyleSheetChangedEventArgs

Fired whenever a stylesheet is changed as a result of the client operation.

StyleSheetRemovedEventArgs

Fired whenever an active document stylesheet is removed.

TakeComputedStyleUpdatesCommandResponse

Response for Polls the next batch of computed style updates.

TakeComputedStyleUpdatesCommandSettings

Polls the next batch of computed style updates.

TakeCoverageDeltaCommandResponse

Response for Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).

TakeCoverageDeltaCommandSettings

Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).

TrackComputedStyleUpdatesCommandResponse

Response for 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.

TrackComputedStyleUpdatesCommandSettings

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.

TrackComputedStyleUpdatesForNodeCommandResponse

Response for Starts tracking the given node for the computed style updates and whenever the computed style is updated for node, it queues a computedStyleUpdated event with throttling. There can only be 1 node tracked for computed style updates so passing a new node id removes tracking from the previous node. Pass undefined to disable tracking.

TrackComputedStyleUpdatesForNodeCommandSettings

Starts tracking the given node for the computed style updates and whenever the computed style is updated for node, it queues a computedStyleUpdated event with throttling. There can only be 1 node tracked for computed style updates so passing a new node id removes tracking from the previous node. Pass undefined to disable tracking.

Value

Data for a simple selector (these are delimited by commas in a selector list).

Enums

CSSAtRuleSubsectionValues

Enumerated values for CSS.CSSAtRule.subsection

CSSAtRuleTypeValues

Enumerated values for CSS.CSSAtRule.type

CSSMediaSourceValues

Enumerated values for CSS.CSSMedia.source

CSSRuleType

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.

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.