| 2323 | // A container uses baseline layout only for row direction, when either |
| 2324 | // align-items is baseline or any flow child has align-self: baseline. |
| 2325 | function isBaselineLayout(node: Node, flowChildren: Node[]): boolean { |
| 2326 | if (!isRow(node.style.flexDirection)) return false |
| 2327 | if (node.style.alignItems === Align.Baseline) return true |
| 2328 | for (const c of flowChildren) { |
| 2329 | if (c.style.alignSelf === Align.Baseline) return true |
| 2330 | } |
| 2331 | return false |
| 2332 | } |
| 2333 | |
| 2334 | function childMarginForAxis( |
| 2335 | child: Node, |