AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.1" />

.NET API 1,172,480 bytes

 CssRule

abstract class CssRule : ICssRule
Represents a CSS rule.
public string CssText { get; set; }

Gets the textual representation of the rule.

public ICssStyleSheet Owner { get; }

Gets the CSSStyleSheet object for the style sheet that contains this rule.

public ICssRule Parent { get; }

Gets the containing rule, otherwise null.

public CssRuleType Type { get; }

Gets the type constant indicating the type of CSS rule.

protected abstract void ReplaceWith(ICssRule rule)

Replaces the current object with the given rule. The types are equal.

protected abstract string ToCss()

Returns a CSS code representation of the rule.