Skip to content

Assert mask transparency by alpha across Skia profiles #635

Closed

Description

@wieslawsoltes

Parent: #256.

Problem

Current-main CI run 35431128608 passes build, tooling, architecture and ABI gates, then fails the Avalonia headless mask tests on Linux and macOS. Three assertions compare the full RGB payload of fully transparent premultiplied pixels:

  • expected #00ffffff
  • actual #00000000

Both represent alpha-zero output. The RGB channels of a fully transparent premultiplied pixel are not a portable rendering contract, and the exact storage differs between supported SkiaSharp/Avalonia profiles after #618/#619 replaced an unavailable Clear(color, blendMode) overload with DrawColor(color, Src).

Fix

Assert the observable mask contract—alpha equals zero—at transparent output pixels while retaining exact foreground-color checks for visible pixels and the clip boundary. Do not weaken any nontransparent pixel assertion.

Acceptance

  • Raster add/exclude, failed-mask clipped clearing and repeated SVG mask composition still require alpha-zero holes.
  • Visible foreground pixels retain exact color assertions.
  • Linux and macOS Avalonia headless jobs no longer depend on undefined RGB data under alpha zero.

Activity

  1. added
    bug
    vscode-oss/planned
    on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugvscode-oss/planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions