AngleSharp by Florian Rappl

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

.NET API 1,176,064 bytes

 CssStyleEngine

The CSS style engine for creating CSSStyleSheet instances.
public static readonly string DefaultSource

Gets the source code for the by default used base stylesheet.

public ICssStyleSheet Default { get; }

Gets the default stylesheet as specified by the W3C: http://www.w3.org/TR/CSS21/sample.html

public CssParserOptions Options { get; set; }

Gets or sets the used parser options.

public string Type { get; }

Gets the type for the CSS style engine.

public CssStyleEngine()

Creates a new style engine.

public ICssStyleDeclaration ParseInline(string source, StyleOptions options)

Creates a style declaration for the given source.

public IStyleSheet ParseStylesheet(string sourceCode, StyleOptions options)

Creates a style sheet for the given source.

Creates a style sheet for the given response from a request.

public ICssStyleSheet SetDefault(string sourceCode)

Sets a new default stylesheet defined by the provided string.