AngleSharp by AngleSharp

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

.NET API 1,223,680 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 ParseDeclaration(string source, StyleOptions options)

Creates a style declaration for the given source.

public IMediaList ParseMedia(string source, StyleOptions options)

Creates a media list for the given source.

Creates a style sheet for the given response asynchronously.

public ICssStyleSheet SetDefault(string sourceCode)

Sets a new default stylesheet defined by the provided string.