(node: DOMElement)
| 1312 | } |
| 1313 | |
| 1314 | function clipsBothAxes(node: DOMElement): boolean { |
| 1315 | const ox = node.style.overflowX ?? node.style.overflow |
| 1316 | const oy = node.style.overflowY ?? node.style.overflow |
| 1317 | return ( |
| 1318 | (ox === 'hidden' || ox === 'scroll') && (oy === 'hidden' || oy === 'scroll') |
| 1319 | ) |
| 1320 | } |
| 1321 | |
| 1322 | // When Yoga squeezes a box to h=0, the ghost only happens if a sibling |
| 1323 | // lands at the same computed top — then both write to that row and the |