(node: DOMElement)
| 1294 | } |
| 1295 | |
| 1296 | function clipsBothAxes(node: DOMElement): boolean { |
| 1297 | const ox = node.style.overflowX ?? node.style.overflow |
| 1298 | const oy = node.style.overflowY ?? node.style.overflow |
| 1299 | return ( |
| 1300 | (ox === 'hidden' || ox === 'scroll') && (oy === 'hidden' || oy === 'scroll') |
| 1301 | ) |
| 1302 | } |
| 1303 | |
| 1304 | // When Yoga squeezes a box to h=0, the ghost only happens if a sibling |
| 1305 | // lands at the same computed top — then both write to that row and the |