AngleSharp by Florian Rappl

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

 IStyleFormatter

public interface IStyleFormatter
Basic interface for CSS node serialization.

Concats the given rules to create a block serialization.

string Constraint(string name, string value)

Creates the serialization of the constraint with the provided name and value, if any.

string Declaration(string name, string value, bool important)

Creates the serialization of a declaration with the given name, value and important flag.

string Declarations(IEnumerable<string> declarations)

Creates the serialization of the declarations with the provided string representations.

string Medium(bool exclusive, bool inverse, string type, string[] constraints)

Serializes a CSS medium with the provided properties.

string Rule(string name, string value)

Converts the name and value of the provided rule to a simple rule.

string Rule(string name, string prelude, string rules)

Converts the name, prelude and rules of the provided rule to a composed rule.

Concats the given rules to create the stylesheet serialization.

string Style(string selector, string rules)

Creates the serialized form of a style rule for the given selector with the provided rules.