Chrome Remote Interface v0.0.3 ChromeRemoteInterface.RPC.CSS View Source
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 discover all the existing stylesheets with the getAllStyleSheets()
method (or keeping track of the styleSheetAdded
/styleSheetRemoved
events) and subsequently load the required stylesheet contents using the getStyleSheetText
methods.
Link to this section Summary
Functions
Inserts a new rule with the given ruleText
in a stylesheet with given styleSheetId
, at the position specified by location
Returns all class names from specified stylesheet
Creates a new special “via-inspector” stylesheet in the frame with given frameId
Disables the CSS agent for the given page
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
Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser
Returns the computed style for a DOM node identified by nodeId
Returns the styles defined inline (explicitly in the “style” attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId
For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style. It only returns pushed nodes, on way to pull all nodes is to call DOM.getDocument with a depth of -1
Returns requested styles for a DOM node identified by nodeId
Returns all media queries parsed by the rendering engine
Requests information about platform fonts which we used to render child TextNodes in the given node
Returns the current textual content and the URL for a stylesheet
Find a rule with the given active property for the given node and set the new value for this property
Modifies the keyframe rule key text
Modifies the rule selector
Modifies the rule selector
Sets the new stylesheet text
Applies specified style edits one after another in the given order
Enables the selector recording
The list of rules with an indication of whether these were used
Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)
Link to this section Functions
Inserts a new rule with the given ruleText
in a stylesheet with given styleSheetId
, at the position specified by location
.
Parameters:
styleSheetId -
Returns all class names from specified stylesheet.
Parameters:
styleSheetId -
Creates a new special “via-inspector” stylesheet in the frame with given frameId
.
Parameters:
frameId -
Disables the CSS agent for the given page.
Parameters:
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:
Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.
Parameters:
nodeId -
Parameters:
nodeId -
Returns the computed style for a DOM node identified by nodeId
.
Parameters:
nodeId -
Returns the styles defined inline (explicitly in the “style” attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId
.
Parameters:
nodeId -
For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style. It only returns pushed nodes, on way to pull all nodes is to call DOM.getDocument with a depth of -1.
Parameters:
computedStyleWhitelist -
Returns requested styles for a DOM node identified by nodeId
.
Parameters:
nodeId -
Returns all media queries parsed by the rendering engine.
Parameters:
Requests information about platform fonts which we used to render child TextNodes in the given node.
Parameters:
nodeId -
Returns the current textual content and the URL for a stylesheet.
Parameters:
styleSheetId -
Find a rule with the given active property for the given node and set the new value for this property
Parameters:
nodeId -
Modifies the keyframe rule key text.
Parameters:
styleSheetId -
Modifies the rule selector.
Parameters:
styleSheetId -
Modifies the rule selector.
Parameters:
styleSheetId -
Sets the new stylesheet text.
Parameters:
styleSheetId -
Applies specified style edits one after another in the given order.
Parameters:
edits -
Enables the selector recording.
Parameters:
The list of rules with an indication of whether these were used
Parameters:
Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)
Parameters: