public readonly record struct ContainerBoxA 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 WidthIts content-box inline size.
public float HeightIts content-box block size.
public ContainerKind KindWhich axes it may be asked about.
public float FontSizeThe container's computed font size, in pixels: what em measures in its queries.
public float RootFontSizeThe 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