strokeAlign
Where the stroke sits relative to the element’s boundary.
Path
…elements.<element>.styles.strokeAlign
Elements Supported
component · container · ellipse · line · polygon · rectangle · slot · star · vector
Value
"INSIDE"(default) — The stroke is drawn within the element’s bounds, so it does not enlarge the painted area."OUTSIDE"— The stroke is drawn beyond the element’s bounds, enlarging the painted area by its weight."CENTER"— The stroke straddles the boundary, half inside and half outside.null— The variant drops the value its base element carried.
Platform bindings
Figma
Disposition: bound · Realised by: node.strokeAlign
Passed through unchanged. The schema types this as an open string rather than an enum, so there is no mapping to lose. A null is skipped rather than resetting the node’s current alignment.
CSS
Disposition: bound · Realised by: rule strokeRendering
Resolved jointly with
This key does not map on its own. Its rule’s ordered case table is linked above.
strokeRendering — CSS
Decisions
Rules
| Rule | Statement |
|---|---|
| DSPEC-44 | Every property of Styles declares a default, and its value validates against that property’s own schema |
| DSPEC-45 | A declared default is a literal, never a TokenReference, PropBinding or Conditional |
| DSPEC-47 | Jointly resolved keys are stated as an ordered case table over a declared operand set, not as prose |
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/styles.schema.json |
| TypeScript | packages/schema/types/Styles.ts |
| Specification | §4.1a, §11 |