AngleSharp by AngleSharp

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

 CssParser

public class CssParser
Creates an instance of the CSS parser front-end.
public IConfiguration Config { get; }

Gets the specified configuration.

public CssParserOptions Options { get; }

Gets the specified options.

public CssParser()

Creates a new parser with the default options and configuration.

public CssParser(CssParserOptions options)

Creates a new parser with the custom options.

public CssParser(IConfiguration configuration)

Creates a new parser with the custom configuration.

public CssParser(CssParserOptions options, IConfiguration configuration)

Creates a new parser with the custom options and configuration.

Takes a string and transforms it into a keyframe selector object.

public ISelector ParseSelector(string selectorText)

Takes a string and transforms it into a selector object.

public ICssStyleSheet ParseStylesheet(string content)

Takes a string and transforms it to a stylesheet.

Takes a stream and transforms it to a stylesheet.

public Task<ICssStyleSheet> ParseStylesheetAsync(string content)

Takes a string and transforms it to a stylesheet.

public Task<ICssStyleSheet> ParseStylesheetAsync(string content, CancellationToken cancelToken)

Takes a string and transforms it to a stylesheet.

Takes a stream and transforms it to a stylesheet.

Takes a stream and transforms it to a stylesheet.