AngleSharp by Florian Rappl

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

 CssParserExtensions

static class CssParserExtensions
Extensions to be used exclusively by the parser or the tokenizer.
public static int GetCode(this CssParseError code)

Retrieves a number describing the error of a given error code.

public static bool Is(this CssToken token, CssTokenType a, CssTokenType b)

Checks if the provided token is either of the first or the second type of token.

public static bool IsMatchToken(this CssToken token)

Checks if the provided token is actually a match token.

public static bool IsNot(this CssToken token, CssTokenType a, CssTokenType b)

Checks if the provided token is neither of the first nor the second type of token.

public static bool IsNot(this CssToken token, CssTokenType a, CssTokenType b, CssTokenType c)

Checks if the provided token is neither of the first, nor the second nor the third type of token.

public static IDocumentFunction ToDocumentFunction(this CssToken token)

Tries to create an IDocumentFunction from the provided token.