CSSClient Methods |
The CSSClient type exposes the following members.
Name | Description | |
---|---|---|
AddRuleAsync | Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the position specified by `location`. | |
CollectClassNamesAsync | Returns all class names from specified stylesheet. | |
CreateStyleSheetAsync | Creates a new special "via-inspector" stylesheet in the frame with given `frameId`. | |
DisableAsync | Disables the CSS agent for the given page. | |
EnableAsync | 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. | |
EnumToString(ContentEncoding) | (Inherited from DevToolsDomainBase) | |
EnumToString(CSPViolationType) | (Inherited from DevToolsDomainBase) | |
EnumToString(DisabledImageType) | (Inherited from DevToolsDomainBase) | |
EnumToString(Enum) | (Inherited from DevToolsDomainBase) | |
EnumToString(PermissionType) | (Inherited from DevToolsDomainBase) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
ForcePseudoStateAsync | Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser. | |
GetBackgroundColorsAsync | GetBackgroundColors | |
GetComputedStyleForNodeAsync | Returns the computed style for a DOM node identified by `nodeId`. | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetInlineStylesForNodeAsync | Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by `nodeId`. | |
GetLayersForNodeAsync | 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. | |
GetLocationForSelectorAsync | Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet. | |
GetMatchedStylesForNodeAsync | Returns requested styles for a DOM node identified by `nodeId`. | |
GetMediaQueriesAsync | Returns all media queries parsed by the rendering engine. | |
GetPlatformFontsForNodeAsync | Requests information about platform fonts which we used to render child TextNodes in the given node. | |
GetStyleSheetTextAsync | Returns the current textual content for a stylesheet. | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
SetContainerQueryTextAsync | Modifies the expression of a container query. | |
SetEffectivePropertyValueForNodeAsync | Find a rule with the given active property for the given node and set the new value for this property | |
SetKeyframeKeyAsync | Modifies the keyframe rule key text. | |
SetLocalFontsEnabledAsync | Enables/disables rendering of local CSS fonts (enabled by default). | |
SetMediaTextAsync | Modifies the rule selector. | |
SetPropertyRulePropertyNameAsync | Modifies the property rule property name. | |
SetRuleSelectorAsync | Modifies the rule selector. | |
SetScopeTextAsync | Modifies the expression of a scope at-rule. | |
SetStyleSheetTextAsync | Sets the new stylesheet text. | |
SetStyleTextsAsync | Applies specified style edits one after another in the given order. | |
SetSupportsTextAsync | Modifies the expression of a supports at-rule. | |
StartRuleUsageTrackingAsync | Enables the selector recording. | |
StopRuleUsageTrackingAsync | Stop tracking rule usage and return the list of rules that were used since last call to `takeCoverageDelta` (or since start of coverage instrumentation). | |
TakeComputedStyleUpdatesAsync | Polls the next batch of computed style updates. | |
TakeCoverageDeltaAsync | Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation). | |
ToBase64String | (Inherited from DevToolsDomainBase) | |
ToString | Returns a string that represents the current object. (Inherited from Object) | |
TrackComputedStyleUpdatesAsync | 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. |