pl.wendigo.chrome.api.css

Package pl.wendigo.chrome.api.css

Contains DevTools Protocol CSS domain implementation accessible via CSSOperations class.

Types

AddRuleRequest

data class AddRuleRequest

Represents request frame that can be used with CSS#addRule operation call.

AddRuleResponse

data class AddRuleResponse

Represents response frame that is returned from CSS#addRule operation call. Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

CollectClassNamesRequest

data class CollectClassNamesRequest

Represents request frame that can be used with CSS#collectClassNames operation call.

CollectClassNamesResponse

data class CollectClassNamesResponse

Represents response frame that is returned from CSS#collectClassNames operation call. Returns all class names from specified stylesheet.

CreateStyleSheetRequest

data class CreateStyleSheetRequest

Represents request frame that can be used with CSS#createStyleSheet operation call.

CreateStyleSheetResponse

data class CreateStyleSheetResponse

Represents response frame that is returned from CSS#createStyleSheet operation call. Creates a new special "via-inspector" stylesheet in the frame with given frameId.

CSSComputedStyleProperty

data class CSSComputedStyleProperty

CSSKeyframeRule

data class CSSKeyframeRule

CSS keyframe rule representation.

CSSKeyframesRule

data class CSSKeyframesRule

CSS keyframes rule representation.

CSSMedia

data class CSSMedia

CSS media rule descriptor.

CSSOperations

class CSSOperations

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.

CSSProperty

data class CSSProperty

CSS property declaration data.

CSSRule

data class CSSRule

CSS rule representation.

CSSStyle

data class CSSStyle

CSS style representation.

CSSStyleSheetHeader

data class CSSStyleSheetHeader

CSS stylesheet metainformation.

FontFace

data class FontFace

Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions

FontsUpdatedEvent

data class FontsUpdatedEvent : Event

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

ForcePseudoStateRequest

data class ForcePseudoStateRequest

Represents request frame that can be used with CSS#forcePseudoState operation call.

GetBackgroundColorsRequest

data class GetBackgroundColorsRequest

Represents request frame that can be used with CSS#getBackgroundColors operation call.

GetBackgroundColorsResponse

data class GetBackgroundColorsResponse

Represents response frame that is returned from CSS#getBackgroundColors operation call.

GetComputedStyleForNodeRequest

data class GetComputedStyleForNodeRequest

Represents request frame that can be used with CSS#getComputedStyleForNode operation call.

GetComputedStyleForNodeResponse

data class GetComputedStyleForNodeResponse

Represents response frame that is returned from CSS#getComputedStyleForNode operation call. Returns the computed style for a DOM node identified by nodeId.

GetInlineStylesForNodeRequest

data class GetInlineStylesForNodeRequest

Represents request frame that can be used with CSS#getInlineStylesForNode operation call.

GetInlineStylesForNodeResponse

data class GetInlineStylesForNodeResponse

Represents response frame that is returned from CSS#getInlineStylesForNode operation call. Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.

GetMatchedStylesForNodeRequest

data class GetMatchedStylesForNodeRequest

Represents request frame that can be used with CSS#getMatchedStylesForNode operation call.

GetMatchedStylesForNodeResponse

data class GetMatchedStylesForNodeResponse

Represents response frame that is returned from CSS#getMatchedStylesForNode operation call. Returns requested styles for a DOM node identified by nodeId.

GetMediaQueriesResponse

data class GetMediaQueriesResponse

Represents response frame that is returned from CSS#getMediaQueries operation call. Returns all media queries parsed by the rendering engine.

GetPlatformFontsForNodeRequest

data class GetPlatformFontsForNodeRequest

Represents request frame that can be used with CSS#getPlatformFontsForNode operation call.

GetPlatformFontsForNodeResponse

data class GetPlatformFontsForNodeResponse

Represents response frame that is returned from CSS#getPlatformFontsForNode operation call. Requests information about platform fonts which we used to render child TextNodes in the given node.

GetStyleSheetTextRequest

data class GetStyleSheetTextRequest

Represents request frame that can be used with CSS#getStyleSheetText operation call.

GetStyleSheetTextResponse

data class GetStyleSheetTextResponse

Represents response frame that is returned from CSS#getStyleSheetText operation call. Returns the current textual content for a stylesheet.

InheritedStyleEntry

data class InheritedStyleEntry

Inherited CSS rule collection from ancestor node.

MediaQuery

data class MediaQuery

Media query descriptor.

MediaQueryExpression

data class MediaQueryExpression

Media query expression descriptor.

PlatformFontUsage

data class PlatformFontUsage

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

PseudoElementMatches

data class PseudoElementMatches

CSS rule collection for a single pseudo style.

RuleMatch

data class RuleMatch

Match data for a CSS rule.

RuleUsage

data class RuleUsage

CSS coverage information.

SelectorList

data class SelectorList

Selector list data.

SetEffectivePropertyValueForNodeRequest

data class SetEffectivePropertyValueForNodeRequest

Represents request frame that can be used with CSS#setEffectivePropertyValueForNode operation call.

SetKeyframeKeyRequest

data class SetKeyframeKeyRequest

Represents request frame that can be used with CSS#setKeyframeKey operation call.

SetKeyframeKeyResponse

data class SetKeyframeKeyResponse

Represents response frame that is returned from CSS#setKeyframeKey operation call. Modifies the keyframe rule key text.

SetMediaTextRequest

data class SetMediaTextRequest

Represents request frame that can be used with CSS#setMediaText operation call.

SetMediaTextResponse

data class SetMediaTextResponse

Represents response frame that is returned from CSS#setMediaText operation call. Modifies the rule selector.

SetRuleSelectorRequest

data class SetRuleSelectorRequest

Represents request frame that can be used with CSS#setRuleSelector operation call.

SetRuleSelectorResponse

data class SetRuleSelectorResponse

Represents response frame that is returned from CSS#setRuleSelector operation call. Modifies the rule selector.

SetStyleSheetTextRequest

data class SetStyleSheetTextRequest

Represents request frame that can be used with CSS#setStyleSheetText operation call.

SetStyleSheetTextResponse

data class SetStyleSheetTextResponse

Represents response frame that is returned from CSS#setStyleSheetText operation call. Sets the new stylesheet text.

SetStyleTextsRequest

data class SetStyleTextsRequest

Represents request frame that can be used with CSS#setStyleTexts operation call.

SetStyleTextsResponse

data class SetStyleTextsResponse

Represents response frame that is returned from CSS#setStyleTexts operation call. Applies specified style edits one after another in the given order.

ShorthandEntry

data class ShorthandEntry

SourceRange

data class SourceRange

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

StopRuleUsageTrackingResponse

data class StopRuleUsageTrackingResponse

Represents response frame that is returned from CSS#stopRuleUsageTracking operation call. 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

data class StyleDeclarationEdit

A descriptor of operation to mutate style declaration text.

StyleSheetAddedEvent

data class StyleSheetAddedEvent : Event

Fired whenever an active document stylesheet is added.

StyleSheetChangedEvent

data class StyleSheetChangedEvent : Event

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

StyleSheetOrigin

enum class 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.

StyleSheetRemovedEvent

data class StyleSheetRemovedEvent : Event

Fired whenever an active document stylesheet is removed.

TakeCoverageDeltaResponse

data class TakeCoverageDeltaResponse

Represents response frame that is returned from CSS#takeCoverageDelta operation call. Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)

Value

data class Value

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

Type Aliases

StyleSheetId

typealias StyleSheetId = String