Table of Contents

Class CssRule

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

A CSS rule: selector + dictionary of property/value pairs.

public sealed class CssRule
Inheritance
CssRule
Inherited Members

Properties

Properties

CSS property/value pairs (lowercase keys).

public required Dictionary<string, string> Properties { get; init; }

Property Value

Dictionary<string, string>

Selector

Raw selector string (e.g., "h1", ".title", "#main", "table td").

public required string Selector { get; init; }

Property Value

string

Specificity

Specificity of this selector (higher = more specific).

public int Specificity { get; init; }

Property Value

int