Skip to content

layoutSizingHorizontal

What determines the element’s width — a fixed value, its contents, or the space its parent offers.

Path

…elements.<element>.styles.layoutSizingHorizontal

Elements Supported

component · container · ellipse · glyph · instance · line · polygon · rectangle · slot · star · text · vector

Value

  • "FIXED" (default) — The axis takes the recorded dimension.
  • "HUG" — The axis shrinks to its contents, so the dimension is an outcome rather than an instruction.
  • "FILL" — The axis expands to the space the parent offers, so the dimension is an outcome rather than an instruction.
  • null — The variant drops the value its base element carried.

Platform bindings

Figma

Disposition: bound · Realised by: rule autoVsAbsoluteLayout

CSS

Disposition: bound · Realised by: rule autoLayoutSizing

Resolved jointly with

This key does not map on its own. Its rule’s ordered case table is linked above.

autoVsAbsoluteLayout — Figma

autoLayoutSizing — CSS

Decisions

  • ADR-081 — defaultFillWidth — the Width a Fill-Width Root Fills
  • ADR-113 — Style defaults belong to the schema
  • ADR-115 — Closed Style Value Sets
  • ADR-124 — Styles on InstanceExample

Rules

RuleStatement
DSPEC-44Every property of Styles declares a default, and its value validates against that property’s own schema
DSPEC-45A declared default is a literal, never a TokenReference, PropBinding or Conditional
DSPEC-47Jointly resolved keys are stated as an ordered case table over a declared operand set, not as prose

Source

FormatFile
JSON Schemapackages/schema/schema/styles.schema.json
TypeScriptpackages/schema/types/Styles.ts
Specification§4.1a, §11