Skip to content

Render Code OSS polygon clip paths in retained scenes #456

Closed

Description

@wieslawsoltes

Parent: #256

Problem

Unchanged Code OSS 645f29cc3176500b4b5762ba887cf2a7f0ffdf2c uses a six-point clip-path: polygon(...) for the Markdown diff change indicator in extensions/markdown-language-features/media/markdown.css. WebScene retains the computed value but emits no polygon clip, so the pseudo-element paints as its full rectangular background.

Focused implementation

  • Parse default-fill-rule polygons containing 3–64 point pairs expressed in px, %, or unitless zero.
  • Resolve point coordinates against the border box and publish one closed SVG path scene string.
  • Extend existing clip-begin kind 12 with an opt-in string-resource flag while retaining kind 13 as the balanced clip end.
  • Clip through the existing Skia and Flutter SVG path parsers; Uno shares the Skia presenter.
  • Preserve existing inset/circle clips and avoid a scene struct, version, capability, or command-kind change.

Fill-rule arguments, calc() and other units, ellipse/path/url clips, masks, foreground filters, backdrop effects, and isolation remain later #256 slices.

Validation debt

Implementation throughput is the current priority. Tests, browser/native pixel contracts, performance and lifecycle benchmarks, hosted checks, CI monitoring, and exact-package visual acceptance are explicitly deferred. No broader support or release claim is made from this implementation alone.

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

    vscode-oss/planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions