AngleSharp by Florian Rappl

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

 StyleExtensions

static class StyleExtensions
A set of extension methods for style / related methods.
public static CssStyleDeclaration ComputeDeclarations(this StyleCollection rules, IElement element, string pseudoSelector = null)

Computes the declarations for the given element in the context of the specified styling rules.

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

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

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 string LocateNamespace(this IStyleSheetList sheets, string prefix)

Tries to find the matching namespace url for the given prefix.