# HtmlCssLengthResolutionContext

Context used to resolve owned length and percentage expressions to CSS pixels.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssMathContracts.cs:215](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L215)

**Modifiers**

sealed

Context used to resolve owned length and percentage expressions to CSS pixels.

## Inheritance

- object
- HtmlCssLengthResolutionContext

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [HtmlCssMathResolver.ResolveLength](/api/html-core/officeimo-html-css-htmlcssmathresolver/#method-resolvelength-officeimo-html-css-htmlcssmathexpression-officeimo-html-css-htmlcsslengthresolutioncontext-threading-cancellationtoken) parameter `context`

Filter members 

Show inherited

## Constructors

`public HtmlCssLengthResolutionContext()` [#](#constructor-ctor)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public double? PercentageReference { get; set; }` [#](#property-percentagereference)

[HtmlCssMathContracts.cs:215](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L215)

Length represented by 100% for the consuming property.

`public double? FontSize { get; set; }` [#](#property-fontsize)

[HtmlCssMathContracts.cs:217](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L217)

Computed element font size in CSS pixels.

`public double? RootFontSize { get; set; }` [#](#property-rootfontsize)

[HtmlCssMathContracts.cs:219](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L219)

Computed root font size in CSS pixels.

`public bool UprightVerticalText { get; set; }` [#](#property-uprightverticaltext)

[HtmlCssMathContracts.cs:221](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L221)

Whether text is upright in a vertical writing mode, requiring a 1em fallback for the ch unit.

`public double? CharacterAdvance { get; set; }` [#](#property-characteradvance)

[HtmlCssMathContracts.cs:224](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L224)

Measured advance of the zero glyph in CSS pixels, when available.

`public double? ViewportWidth { get; set; }` [#](#property-viewportwidth)

[HtmlCssMathContracts.cs:226](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L226)

Default viewport width in CSS pixels. Specialized viewport sizes fall back to this value.

`public double? ViewportHeight { get; set; }` [#](#property-viewportheight)

[HtmlCssMathContracts.cs:228](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L228)

Default viewport height in CSS pixels. Specialized viewport sizes fall back to this value.

`public double? SmallViewportWidth { get; set; }` [#](#property-smallviewportwidth)

[HtmlCssMathContracts.cs:230](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L230)

Small viewport width in CSS pixels.

`public double? SmallViewportHeight { get; set; }` [#](#property-smallviewportheight)

[HtmlCssMathContracts.cs:232](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L232)

Small viewport height in CSS pixels.

`public double? LargeViewportWidth { get; set; }` [#](#property-largeviewportwidth)

[HtmlCssMathContracts.cs:234](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L234)

Large viewport width in CSS pixels.

`public double? LargeViewportHeight { get; set; }` [#](#property-largeviewportheight)

[HtmlCssMathContracts.cs:236](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L236)

Large viewport height in CSS pixels.

`public double? DynamicViewportWidth { get; set; }` [#](#property-dynamicviewportwidth)

[HtmlCssMathContracts.cs:238](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L238)

Dynamic viewport width in CSS pixels.

`public double? DynamicViewportHeight { get; set; }` [#](#property-dynamicviewportheight)

[HtmlCssMathContracts.cs:240](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L240)

Dynamic viewport height in CSS pixels.

`public double? ContainerWidth { get; set; }` [#](#property-containerwidth)

[HtmlCssMathContracts.cs:242](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L242)

Query-container width in CSS pixels.

`public double? ContainerHeight { get; set; }` [#](#property-containerheight)

[HtmlCssMathContracts.cs:244](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L244)

Query-container height in CSS pixels.

`public double? ContainerInlineSize { get; set; }` [#](#property-containerinlinesize)

[HtmlCssMathContracts.cs:246](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L246)

Query-container inline size in CSS pixels. Falls back to container width.

`public double? ContainerBlockSize { get; set; }` [#](#property-containerblocksize)

[HtmlCssMathContracts.cs:248](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L248)

Query-container block size in CSS pixels. Falls back to container height.

<!-- PowerForge markdown artifact sha256:17C3829EE7CBFDF1E66270467633698AEB6E2D07172311996FDFDABECEC8B71D -->
