cdp-0.0.2.0: A library for the Chrome Devtools Protocol
Safe HaskellNone
LanguageHaskell2010

CDP.Domains.CSS

Description

CSS

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.

Synopsis

Documentation

data PCSSSetLocalFontsEnabled Source #

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

Parameters of the setLocalFontsEnabled command.

Constructors

PCSSSetLocalFontsEnabled 

Fields

data PCSSStopRuleUsageTracking Source #

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

Parameters of the stopRuleUsageTracking command.

data CSSSetStyleTexts Source #

Constructors

CSSSetStyleTexts 

Fields

data CSSSetScopeText Source #

Constructors

CSSSetScopeText 

Fields

data PCSSSetContainerQueryText Source #

Modifies the expression of a container query.

Parameters of the setContainerQueryText command.

data CSSSetMediaText Source #

Constructors

CSSSetMediaText 

Fields

data PCSSSetEffectivePropertyValueForNode Source #

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

Parameters of the setEffectivePropertyValueForNode command.

Instances

Instances details
Eq PCSSSetEffectivePropertyValueForNode Source # 
Instance details

Defined in CDP.Domains.CSS

Show PCSSSetEffectivePropertyValueForNode Source # 
Instance details

Defined in CDP.Domains.CSS

ToJSON PCSSSetEffectivePropertyValueForNode Source # 
Instance details

Defined in CDP.Domains.CSS

Command PCSSSetEffectivePropertyValueForNode Source # 
Instance details

Defined in CDP.Domains.CSS

type CommandResponse PCSSSetEffectivePropertyValueForNode Source # 
Instance details

Defined in CDP.Domains.CSS

data PCSSTakeComputedStyleUpdates Source #

Polls the next batch of computed style updates.

Parameters of the takeComputedStyleUpdates command.

data PCSSTrackComputedStyleUpdates Source #

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.

Parameters of the trackComputedStyleUpdates command.

data PCSSGetLayersForNode Source #

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.

Parameters of the getLayersForNode command.

data PCSSGetPlatformFontsForNode Source #

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

Parameters of the getPlatformFontsForNode command.

data CSSGetMatchedStylesForNode Source #

Constructors

CSSGetMatchedStylesForNode 

Fields

data PCSSGetMatchedStylesForNode Source #

Returns requested styles for a DOM node identified by nodeId.

Parameters of the getMatchedStylesForNode command.

data PCSSGetInlineStylesForNode Source #

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

Parameters of the getInlineStylesForNode command.

data PCSSGetComputedStyleForNode Source #

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

Parameters of the getComputedStyleForNode command.

data CSSGetBackgroundColors Source #

Constructors

CSSGetBackgroundColors 

Fields

  • cSSGetBackgroundColorsBackgroundColors :: Maybe [Text]

    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).

  • cSSGetBackgroundColorsComputedFontSize :: Maybe Text

    The computed font size for this node, as a CSS computed value string (e.g. '12px').

  • cSSGetBackgroundColorsComputedFontWeight :: Maybe Text

    The computed font weight for this node, as a CSS computed value string (e.g. normal or '100').

data PCSSForcePseudoState Source #

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

Parameters of the forcePseudoState command.

Constructors

PCSSForcePseudoState 

Fields

data PCSSEnable Source #

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.

Parameters of the enable command.

Constructors

PCSSEnable 

data PCSSDisable Source #

Disables the CSS agent for the given page.

Parameters of the disable command.

Constructors

PCSSDisable 

data PCSSCreateStyleSheet Source #

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

Parameters of the createStyleSheet command.

Constructors

PCSSCreateStyleSheet 

Fields

data CSSAddRule Source #

Constructors

CSSAddRule 

Fields

Instances

Instances details
Eq CSSAddRule Source # 
Instance details

Defined in CDP.Domains.CSS

Show CSSAddRule Source # 
Instance details

Defined in CDP.Domains.CSS

FromJSON CSSAddRule Source # 
Instance details

Defined in CDP.Domains.CSS

data PCSSAddRule Source #

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

Parameters of the addRule command.

Constructors

PCSSAddRule 

Fields

data CSSFontsUpdated Source #

Type of the fontsUpdated event.

Constructors

CSSFontsUpdated 

Fields

data CSSCSSKeyframeRule Source #

Type CSSKeyframeRule. CSS keyframe rule representation.

Constructors

CSSCSSKeyframeRule 

Fields

data CSSFontFace Source #

Type 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.

Constructors

CSSFontFace 

Fields

data CSSFontVariationAxis Source #

Type FontVariationAxis. Information about font variation axes for variable fonts

Constructors

CSSFontVariationAxis 

Fields

data CSSPlatformFontUsage Source #

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

Constructors

CSSPlatformFontUsage 

Fields

data CSSCSSLayerData Source #

Type CSSLayerData. CSS Layer data.

Constructors

CSSCSSLayerData 

Fields

data CSSCSSLayer Source #

Type CSSLayer. CSS Layer at-rule descriptor.

Constructors

CSSCSSLayer 

Fields

data CSSCSSScope Source #

Type CSSScope. CSS Scope at-rule descriptor.

Constructors

CSSCSSScope 

Fields

data CSSCSSSupports Source #

Type CSSSupports. CSS Supports at-rule descriptor.

Constructors

CSSCSSSupports 

Fields

data CSSCSSContainerQuery Source #

Type CSSContainerQuery. CSS container query rule descriptor.

Constructors

CSSCSSContainerQuery 

Fields

data CSSMediaQueryExpression Source #

Type MediaQueryExpression. Media query expression descriptor.

Constructors

CSSMediaQueryExpression 

Fields

data CSSMediaQuery Source #

Type MediaQuery. Media query descriptor.

Constructors

CSSMediaQuery 

Fields

data CSSCSSMedia Source #

Constructors

CSSCSSMedia 

Fields

data CSSCSSMediaSource Source #

Type CSSMedia. CSS media rule descriptor.

Instances

Instances details
Eq CSSCSSMediaSource Source # 
Instance details

Defined in CDP.Domains.CSS

Ord CSSCSSMediaSource Source # 
Instance details

Defined in CDP.Domains.CSS

Read CSSCSSMediaSource Source # 
Instance details

Defined in CDP.Domains.CSS

Show CSSCSSMediaSource Source # 
Instance details

Defined in CDP.Domains.CSS

ToJSON CSSCSSMediaSource Source # 
Instance details

Defined in CDP.Domains.CSS

FromJSON CSSCSSMediaSource Source # 
Instance details

Defined in CDP.Domains.CSS

data CSSCSSProperty Source #

Type CSSProperty. CSS property declaration data.

Constructors

CSSCSSProperty 

Fields

data CSSCSSStyle Source #

Type CSSStyle. CSS style representation.

Constructors

CSSCSSStyle 

Fields

data CSSSourceRange Source #

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

Constructors

CSSSourceRange 

Fields

data CSSRuleUsage Source #

Type RuleUsage. CSS coverage information.

Constructors

CSSRuleUsage 

Fields

data CSSCSSRule Source #

Type CSSRule. CSS rule representation.

Constructors

CSSCSSRule 

Fields

Instances

Instances details
Eq CSSCSSRule Source # 
Instance details

Defined in CDP.Domains.CSS

Show CSSCSSRule Source # 
Instance details

Defined in CDP.Domains.CSS

ToJSON CSSCSSRule Source # 
Instance details

Defined in CDP.Domains.CSS

FromJSON CSSCSSRule Source # 
Instance details

Defined in CDP.Domains.CSS

data CSSCSSStyleSheetHeader Source #

Type CSSStyleSheetHeader. CSS stylesheet metainformation.

Constructors

CSSCSSStyleSheetHeader 

Fields

data CSSValue Source #

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

Constructors

CSSValue 

Fields

Instances

Instances details
Eq CSSValue Source # 
Instance details

Defined in CDP.Domains.CSS

Show CSSValue Source # 
Instance details

Defined in CDP.Domains.CSS

ToJSON CSSValue Source # 
Instance details

Defined in CDP.Domains.CSS

FromJSON CSSValue Source # 
Instance details

Defined in CDP.Domains.CSS

data CSSRuleMatch Source #

Type RuleMatch. Match data for a CSS rule.

Constructors

CSSRuleMatch 

Fields

data CSSInheritedStyleEntry Source #

Type InheritedStyleEntry. Inherited CSS rule collection from ancestor node.

Constructors

CSSInheritedStyleEntry 

Fields

data CSSStyleSheetOrigin Source #

Type 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.

Instances

Instances details
Eq CSSStyleSheetOrigin Source # 
Instance details

Defined in CDP.Domains.CSS

Ord CSSStyleSheetOrigin Source # 
Instance details

Defined in CDP.Domains.CSS

Read CSSStyleSheetOrigin Source # 
Instance details

Defined in CDP.Domains.CSS

Show CSSStyleSheetOrigin Source # 
Instance details

Defined in CDP.Domains.CSS

ToJSON CSSStyleSheetOrigin Source # 
Instance details

Defined in CDP.Domains.CSS

FromJSON CSSStyleSheetOrigin Source # 
Instance details

Defined in CDP.Domains.CSS