fix: stack clip regions so nested clips restore the parent rect (#85)
* test: failing repro for nested-clip
* fix: stack clip regions so nested clips restore the parent rect
Clip state was a single rect, so closing an inner clip turned
clipping off entirely and later siblings leaked past the outer
bounds. Replace it with a fixed-depth stack: SCISSOR_START pushes
intersect(parent, child) and SCISSOR_END pops, restoring the parent
rect while the stack is non-empty. The active top mirrors into the
existing clipx/clipy/clipw/cliph scalars, so setcell is unchanged.
Fixes #77
* test: move nested-clip regression into test/clip.test.ts
* π Use visual language for clipping tests
* π Update render spec to include clipping behavior
* fix: honor clip depth limit
---------
Co-authored-by: Charles Lowell <cowboyd@frontside.com>
authored by