Files
James DimachkieandClaude 4c773e5fcf A filter's layer stops at paint containment and at its own clip over the boxes its stacking context paints
Two more ways the layer grew over content nobody sees, both from the Codex review of the first commit:
- the stacking context's boxes were all added whole, where hoisted_content_bbox places them. Only the ones painted
  past the clip need that (the out-of-flow boxes from containing blocks above, #39's from_above, which the walk
  doesn't meet). The others are met by the walk, under the clips they are painted under, so a filtered
  `overflow: hidden` box with a frame-covering `z-index` child keeps a layer its own size;
- drawn_bounds stops at a `contain: paint` box as at an overflow clip (render_element's contain_paint).

bench/filter-overflow/clipped.tsx is now 120 boxes cut four ways, 30 each. The first commit drew 60 of its 120
tiles: each of the two new kinds made 30 layers the size of the frame, more than Vello's image atlas holds.

Co-Authored-By: Claude <[email protected]>
2026-11-10 14:13:17 -08:00
..