You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UIElement.Opacity has no effect on SKCanvasElement content #24367
If opacity were composited, the centre pixel would be roughly rgb(191,191,191). It is pure black (luma 0) — the opacity was ignored entirely.
Expected
Opacity on an SKCanvasElement, or on any ancestor, composites its drawn output — or,
failing that, the limitation is documented and detectable.
Why this matters
Opacity is the standard mechanism for fading content in and out. Any entrance, exit or
disabled state built on it silently does nothing when the target is a Skia canvas, and
because the canvas still renders, the result looks like an animation bug rather than an
unsupported property.
Note this is not a general transform problem: the same element correctly rides a parent Viewbox/ScaleTransform (verified separately, 100% ink for a 4x-scaled mark), so
scaling composites while opacity does not.
Workaround
Bake the alpha into the SKPaint colours inside RenderOverride.
Reproduced by an automated capability probe rather than by hand, so the numbers above are
the probe's raw output. The probe asserts the claim in this issue and reports the measured
values, so it can be re-run against any SDK to confirm a fix.
Activity
fix(skia): apply the opacity to SKCanvasElement content