Skip to content

Paint Code OSS details-content border-image cutoff #756

Closed

Description

@wieslawsoltes

Merged checkpoint — 20 September 2026

PR #757 merged this issue to WebScene main at 3a8834834be7f29d21ca4e73f8b5a2b46b0619af from focused source b622070f3dd007ee09e29fc3ee787307d34a516a. The exact unchanged Code OSS linear-gradient(to bottom, ...) 1 value is retained after custom-property resolution and published through the existing bounded gradient resource on only the ::details-content logical inline-start border. RTL, pseudo opacity grouping, animated used block size, and overflow clipping share the existing retained path; other border-image grammars remain unsupported.

Focused native scene and browser-reference sources are committed. Execution was intentionally deferred under the current implementation-throughput directive; related CI is canceled after merge.

Parent epic: #235
Paint owner: #241
Depends on merged static/transition details work: #739, #755

Proven Code OSS gap

Unchanged Code OSS 645f29c styles the completed-response ::details-content inline-start border with:

border-image: linear-gradient(
  to bottom,
  var(--vscode-chat-requestBorder) 0 calc(100% - var(--vscode-spacing-size80)),
  transparent calc(100% - var(--vscode-spacing-size80))
) 1;

WebScene now lays out, clips, and animates this pseudo, but classifies its border-image as static/unsupported and paints the inline-start border through the full retained content height. The final spacing segment should be transparent.

Focused implementation

  • Parse the bounded vertical linear-gradient border-image shape above after custom-property resolution.
  • Retain the color and terminal transparent inset on the lazy ::details-content record.
  • Paint the inline-start border only through the resolved non-transparent segment, following RTL placement, opacity transition, keyword-size clipping, resize, and mutation.
  • Fail closed for other border-image grammars and keep them explicitly unsupported.
  • Do not change VS Code CSS or add a browser/WebView dependency.

Gates

  • focused native scene geometry for LTR/RTL, mutation, resize, open/close and animated midpoint;
  • WPT candidate comparing the bounded gradient shape with an equivalent reference border;
  • 4,096 unrelated/static nodes allocate no owner animation runtime and no frame demand;
  • repeated open/close and removal return retained state to the warmed baseline;
  • unchanged Code OSS completed-response region remains the product pixel gate under Establish Chromium/AppScene visual and geometry regression gates for unchanged Code OSS #259.

Under the current implementation-throughput directive, implement and merge this source slice first; cumulative package/pixel/performance execution remains recorded in the parent epics.

Activity

  1. added
    enhancement
    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

    enhancementvscode-oss/planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions