Vixen
feb85697
csharp
public readonly record struct ContainerBox

A query container's box, as the last layout pass measured it.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The two font sizes are part of the box, and so part of the key its scope is interned under. A container query's em is the container's own computed font, so a container whose font changes at an unchanged size answers (min-width: 30em) differently. Carrying the font here makes that a different box, which is a different scope, which is the invalidation a resize already gets. Keeping the fonts beside the box would have needed an edge of its own.

Fields and properties (5)

  • public float Width

    Its content-box inline size.

  • public float Height

    Its content-box block size.

  • public ContainerKind Kind

    Which axes it may be asked about.

  • public float FontSize

    The container's computed font size, in pixels: what em measures in its queries.

  • public float RootFontSize

    The root font size, in pixels: what rem measures in its queries.

Methods (1)

  • public ContainerBox(float Width, float Height, ContainerKind Kind)

    A query container's box, as the last layout pass measured it.

Used by (12)

  • CascadeFixtureVixen.Ui.Styling.Tests
  • ContainerConditionsVixen.Ui.Styling
  • ContainerQueryVixen.Ui.Styling
  • ContainerQueryTestsVixen.Ui.Styling.Tests
  • ContainerScopeVixen.Ui.Styling
  • ContainerScopesVixen.Ui.Styling
  • EntryVixen.Ui.Styling
  • KeyVixen.Ui.Styling
  • UiDocumentVixen.Ui
  • UiElementVixen.Ui
  • UtilityFixtureVixen.Ui.Styling.Utilities.Tests
  • VariantCoverageTestsVixen.Ui.Styling.Utilities.Tests