Render linear-gradient CSS masks - #498
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.
Problem and result
WebScene reflects CSS mask properties but did not publish or project their visual effect, so unchanged Code OSS fade surfaces painted as fully opaque content.
This change adds a bounded single-layer alpha
linear-gradient(...)mask path:calc(percent ± px)size;Multiple mask layers, radial and URL/SVG masks, luminance mode, and non-add compositing remain follow-up work under #256.
Validation
git diff --checkpasses. Per the current implementation-throughput directive, builds, native/browser tests, pixels, backend parity, performance, memory, package, and CI gates were intentionally not run; that cumulative debt is recorded in #497, #256, #235, and the integration/release epics.Closes #497