AngleSharp by Florian Rappl

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

 WindowExtensions

static class WindowExtensions
A set of useful extension methods for the Window class.
public static CssStyleDeclaration ComputeCascadedStyle(this StyleCollection styleCollection, IElement element)

Computes the cascaded style, i.e. resolves the cascade by ordering after specifity. Two rules with the same specifity are ordered according to their appearance. The more recent declaration wins. Inheritance is not taken into account.

public static CssStyleDeclaration ComputeDefaultStyle(this IWindow window, IElement element)

public static CssStyleDeclaration ComputeRawStyle(this IWindow window, IElement element)

public static CssStyleDeclaration ComputeUsedStyle(this IWindow window, IElement element)

public static StyleCollection GetStyleCollection(this IWindow window)

Generates the style collection for the given window object.