Skip to content

fix: account for contour stroke in shadow clipping test - #4319

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4314
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4314

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The shadow visual clipping test still required a contour to stop exactly at its host edge, while #4294 deliberately lets one stroke survive beyond each clipping band. Both the comment mark and Alt aim therefore end at 342px rather than 340px in this fixture. Rendering is unchanged.

The test now requires the exact host edge plus the theme's stroke width and verifies that the underlying shadow surface extends farther, so losing host clipping still fails. This preserves #4294's outside-stroke intent without adding a rendering exception.

The original assertion fails on current main. The corrected test and two nearby visual geometry tests pass (3 focused browser tests). Local Ruff checks could not run because Ruff is unavailable in the prepared environment; PR CI supplies the remaining checks.

Closes #4314 — automated triage

The shadow visual test required paint to stop exactly at the host edge. #4294 deliberately preserves one contour stroke beyond a clipping band, so both reference and aim now end at the host edge plus the theme stroke width. Assert that exact boundary and that the source surface is wider, retaining the check that shadow host clipping applies.

Closes #4314
@leaf-agent
leaf-agent merged commit 8a082ff into main Oct 27, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4314 branch October 27, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shadow visual target paint extends 2px beyond the host clipping expectation

1 participant