AngleSharp by Florian Rappl

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

 CssParser

public sealed class CssParser
The CSS parser. See http://dev.w3.org/csswg/css-syntax/#parsing for more details.
public bool IsAsync { get; }

Gets if the parser has been started asynchronously.

public ICssStyleSheet Result { get; }

Gets the resulting stylesheet of the parsing.

public CssParser(string source, IConfiguration configuration = null)

Creates a new CSS parser instance with a new stylesheet based on the given source.

public CssParser(Stream stream, IConfiguration configuration = null)

Creates a new CSS parser instance with an new stylesheet based on the given stream.

public static IKeyframeSelector ParseKeyframeSelector(string keyText, IConfiguration configuration = null)

Takes a string and transforms it into a selector object.

public static ISelector ParseSelector(string selectorText)

Takes a string and transforms it into a selector object.

Parses the given source code.

Parses the given source asynchronously and creates the stylesheet.

Parses the given source asynchronously and creates the stylesheet.