Skip to content

intrinsicSize

disposition: bound, basis: implementation

A rule of the CSS binding. These keys resolve jointly — no one of them determines any single output, so the rule below is the mapping.

Keys. width, height, aspectRatio

Operands

Every fact the rule reads. Nothing outside this set participates.

OperandFrom
self.widthdocument
self.heightdocument
self.aspectRatiodocument

Cases

Ordered — first match wins.

#WhenEmitsWhy
1self.width presentwidth: <self.width>
2self.height present and self.aspectRatio presentnothinga stated ratio derives the height
3self.height presentheight: <self.height>
4self.aspectRatio presentaspect-ratio: <x> / <y>

Otherwise

Nothing is emitted.

css/style/size.ts:22-34. minWidth, minHeight, maxWidth and maxHeight are independent and map one-to-one.