Table of Contents

Class StyleResolver

Namespace
SimpleSign.HtmlToPdf.Parsing
Assembly
SimpleSign.HtmlToPdf.dll

Resolves CSS cascade: applies browser defaults, stylesheet rules, and inline styles to produce a ComputedStyle for each DOM node.

public static class StyleResolver
Inheritance
StyleResolver
Inherited Members

Methods

Resolve(HtmlNode, List<CssRule>)

Resolves computed styles for the entire DOM tree. Call after parsing HTML and CSS. Sets ComputedStyle on each node.

public static void Resolve(HtmlNode root, List<CssRule> stylesheetRules)

Parameters

root HtmlNode
stylesheetRules List<CssRule>