Click or drag to resize

CSS Class

Version 85.3.121
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.
Inheritance Hierarchy
SystemObject
  CefSharp.DevToolsDevToolsDomainBase
    CefSharp.DevTools.CSSCSS

Namespace:  CefSharp.DevTools.CSS
Assembly:  CefSharp (in CefSharp.dll) Version: 85.3.121.0 (85.3.121.0)
Syntax
public class CSS : DevToolsDomainBase

The CSS type exposes the following members.

Constructors
  NameDescription
Public methodCSS
Initializes a new instance of the CSS class
Top
Methods
  NameDescription
Public methodAddRuleAsync
Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the position specified by `location`.
Public methodCollectClassNamesAsync
Returns all class names from specified stylesheet.
Public methodCreateStyleSheetAsync
Creates a new special "via-inspector" stylesheet in the frame with given `frameId`.
Public methodDisableAsync
Disables the CSS agent for the given page.
Public methodEnableAsync
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.
Protected methodEnumToString(Enum) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(PermissionType) (Inherited from DevToolsDomainBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodForcePseudoStateAsync
Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.
Public methodGetBackgroundColorsAsync
GetBackgroundColors
Public methodGetComputedStyleForNodeAsync
Returns the computed style for a DOM node identified by `nodeId`.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInlineStylesForNodeAsync
Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by `nodeId`.
Public methodGetMatchedStylesForNodeAsync
Returns requested styles for a DOM node identified by `nodeId`.
Public methodGetMediaQueriesAsync
Returns all media queries parsed by the rendering engine.
Public methodGetPlatformFontsForNodeAsync
Requests information about platform fonts which we used to render child TextNodes in the given node.
Public methodGetStyleSheetTextAsync
Returns the current textual content for a stylesheet.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetEffectivePropertyValueForNodeAsync
Find a rule with the given active property for the given node and set the new value for this property
Public methodSetKeyframeKeyAsync
Modifies the keyframe rule key text.
Public methodSetMediaTextAsync
Modifies the rule selector.
Public methodSetRuleSelectorAsync
Modifies the rule selector.
Public methodSetStyleSheetTextAsync
Sets the new stylesheet text.
Public methodSetStyleTextsAsync
Applies specified style edits one after another in the given order.
Public methodStartRuleUsageTrackingAsync
Enables the selector recording.
Public methodStopRuleUsageTrackingAsync
Stop tracking rule usage and return the list of rules that were used since last call to `takeCoverageDelta` (or since start of coverage instrumentation)
Public methodTakeCoverageDeltaAsync
Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)
Protected methodToBase64String (Inherited from DevToolsDomainBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also