Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlCssCascadeCandidate

OfficeIMO.Html.Css

Namespace
OfficeIMO.Html.Css
Assembly
OfficeIMO.Html.Core
Source revision
3b680b1b6fb1 with working tree changes
Modifiers
sealed

One supported declaration retained while resolving an owned property slice.

Inheritance

  • object
  • HtmlCssCascadeCandidate

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public HtmlCssCascadeCandidate(string declaredValue, string? cascadedValue, HtmlCssCascadeSourceKind source, HtmlCssCascadeDecision decision, bool isEffective, HtmlCssPropertyParseStatus grammarStatus, bool isImportant, HtmlCssSpecificity specificity, int ruleOrder, int declarationOrder, string? selector = null, string? layerName = null) #

Creates an immutable provider-neutral cascade candidate.

Parameters

declaredValue string required
cascadedValue string? required
source OfficeIMO.Html.Css.HtmlCssCascadeSourceKind required
decision OfficeIMO.Html.Css.HtmlCssCascadeDecision required
isEffective bool required
grammarStatus OfficeIMO.Html.Css.HtmlCssPropertyParseStatus required
isImportant bool required
specificity OfficeIMO.Html.Css.HtmlCssSpecificity required
ruleOrder int required
declarationOrder int required
selector string? = null optional
layerName string? = null optional

Properties

public string DeclaredValue { get; } #

Declaration value supplied to the cascade, including a CSS-wide keyword or unresolved var().

public string? CascadedValue { get; } #

Candidate value after CSS-wide keyword handling, or null for a reset or rollback.

public HtmlCssCascadeSourceKind Source { get; } #

Where the candidate came from.

public HtmlCssCascadeDecision Decision { get; } #

How the candidate participated in the final result.

public bool IsEffective { get; } #

Whether this authored declaration won the local cascade before keyword or substitution fallback was applied.

public HtmlCssPropertyParseStatus GrammarStatus { get; } #

Owned property-grammar status for the declaration value.

public bool IsImportant { get; } #

Whether the declaration was important.

public HtmlCssSpecificity Specificity { get; } #

Selector specificity. Inline, inherited and presentational candidates also expose their stable internal tuple.

public int RuleOrder { get; } #

Matched rule order, or -1 for inherited and presentational values.

public int DeclarationOrder { get; } #

Order within the declaration block.

public string? Selector { get; } #

Matched selector text when the source is a style rule.

public string? LayerName { get; } #

Qualified cascade-layer name, or null for an unlayered declaration.