Render retained polygon clip paths - #458
Merged
Merged
Conversation
This was referenced Sep 18, 2026
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.
Unchanged Code OSS uses a six-point
clip-path: polygon(...)for the Markdown diff change indicator, but WebScene currently paints that pseudo-element as its full rectangular background. This change resolves boundedpx/%polygon points once in the native scene emitter and clips them in Avalonia/Uno and Flutter through their existing SVG path support.The scene ABI struct and version remain unchanged: clip-begin kind 12 reserves its top flag bit for an indexed path resource, and kind 13 remains the balanced end. Existing inset and circle commands retain zero flags and their rounded-rectangle geometry. The parser accepts default-fill-rule polygons with 3–64 point pairs; other units, fill-rule arguments, and other effect families remain under #256.
Validation debt: per the implementation-throughput priority, tests, browser/native pixel contracts, performance/lifecycle benchmarks, hosted checks, CI monitoring, and exact-package visual acceptance were skipped.
git diff --checkpasses on source headbdcab003rebased onto maina2f873e8.Closes #456
Parent: #256