Repository navigation
fix: account for contour stroke in shadow clipping test - #4319
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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