Module chrome_remote_interface_model::css[][src]

This is supported on crate features experimental and CSS and DOM and Page only.

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.

Structs

AddRuleCommand

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

AddRuleReturn

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

CollectClassNamesCommand

Returns all class names from specified stylesheet.

CollectClassNamesReturn

Returns all class names from specified stylesheet.

CreateStyleSheetCommand

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

CreateStyleSheetReturn

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

CssComputedStyleProperty
CssKeyframeRule

CSS keyframe rule representation.

CssKeyframeRuleBuilder
CssKeyframesRule

CSS keyframes rule representation.

CssMedia

CSS media rule descriptor.

CssMediaBuilder
CssProperty

CSS property declaration data.

CssPropertyBuilder
CssRule

CSS rule representation.

CssRuleBuilder
CssStyle

CSS style representation.

CssStyleBuilder
CssStyleSheetHeader

CSS stylesheet metainformation.

CssStyleSheetHeaderBuilder
DisableCommand

Disables the CSS agent for the given page.

DisableReturn

Disables the CSS agent for the given page.

EnableCommand

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.

EnableReturn

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.

FontFaceBuilder
FontVariationAxis

Information about font variation axes for variable fonts

FontVariationAxisBuilder
FontsUpdatedEvent

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

ForcePseudoStateCommand

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

ForcePseudoStateReturn

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

GetBackgroundColorsCommand
GetBackgroundColorsReturn
GetComputedStyleForNodeCommand

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

GetComputedStyleForNodeReturn

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

GetInlineStylesForNodeCommand

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

GetInlineStylesForNodeReturn

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

GetMatchedStylesForNodeCommand

Returns requested styles for a DOM node identified by nodeId.

GetMatchedStylesForNodeReturn

Returns requested styles for a DOM node identified by nodeId.

GetMatchedStylesForNodeReturnBuilder
GetMediaQueriesCommand

Returns all media queries parsed by the rendering engine.

GetMediaQueriesReturn

Returns all media queries parsed by the rendering engine.

GetPlatformFontsForNodeCommand

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

GetPlatformFontsForNodeReturn

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

GetStyleSheetTextCommand

Returns the current textual content for a stylesheet.

GetStyleSheetTextReturn

Returns the current textual content for a stylesheet.

InheritedStyleEntry

Inherited CSS rule collection from ancestor node.

MediaQuery

Media query descriptor.

MediaQueryExpression

Media query expression descriptor.

MediaQueryExpressionBuilder
MediaQueryResultChangedEvent

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.

RuleMatch

Match data for a CSS rule.

RuleUsage

CSS coverage information.

RuleUsageBuilder
SelectorList

Selector list data.

SetEffectivePropertyValueForNodeCommand

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

SetEffectivePropertyValueForNodeReturn

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

SetKeyframeKeyCommand

Modifies the keyframe rule key text.

SetKeyframeKeyReturn

Modifies the keyframe rule key text.

SetLocalFontsEnabledCommand

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

SetLocalFontsEnabledReturn

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

SetMediaTextCommand

Modifies the rule selector.

SetMediaTextReturn

Modifies the rule selector.

SetRuleSelectorCommand

Modifies the rule selector.

SetRuleSelectorReturn

Modifies the rule selector.

SetStyleSheetTextCommand

Sets the new stylesheet text.

SetStyleSheetTextReturn

Sets the new stylesheet text.

SetStyleTextsCommand

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

SetStyleTextsReturn

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

ShorthandEntry
SourceRange

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

SourceRangeBuilder
StartRuleUsageTrackingCommand

Enables the selector recording.

StartRuleUsageTrackingReturn

Enables the selector recording.

StopRuleUsageTrackingCommand

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

StopRuleUsageTrackingReturn

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.

StyleSheetAddedEvent

Fired whenever an active document stylesheet is added.

StyleSheetChangedEvent

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

StyleSheetId
StyleSheetRemovedEvent

Fired whenever an active document stylesheet is removed.

TakeComputedStyleUpdatesCommand

Polls the next batch of computed style updates.

TakeComputedStyleUpdatesReturn

Polls the next batch of computed style updates.

TakeCoverageDeltaCommand

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

TakeCoverageDeltaReturn

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

TrackComputedStyleUpdatesCommand

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.

TrackComputedStyleUpdatesReturn

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.

Value

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

Enums

CssMediaSource
StyleSheetOrigin