AngleSharp by Florian Rappl

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

 StyleExtensions

static class StyleExtensions
A set of extension methods for style / related methods.
public static CSSStyleDeclaration ComputeDeclarations(this IWindow window, IElement element)

Computes the declarations for the given element in the specified window.

public static void EnableStyleSheetSet(this IStyleSheetList sheets, string name)

Sets the enabled style sheet sets in the list of style sheets.

public static void ExtendWith(this CssPropertyBag bag, CSSStyleDeclaration styling, Priority priority)

Extends the given bag with the set properties of the specified styling declaration.

public static IEnumerable<string> GetAllStyleSheetSets(this IStyleSheetList sheets)

Gets all possible style sheet sets from the list of style sheets.

public static IEnumerable<string> GetEnabledStyleSheetSets(this IStyleSheetList sheets)

Gets the enabled style sheet sets from the list of style sheets.

public static IEnumerable<IStyleSheet> GetStyleSheets(this INode parent)

Gets an enumeration over all the stylesheets from the given parent.

public static void InheritFrom(this CssPropertyBag bag, IElement element, IWindow window)

Inherits the unspecified properties from the element's parents.