w3c / w3c/csswg-drafts

[css-view-transitions-2] scoped VT: we should apply content-visibility: hidden for the duration of capture

Open
#13,428 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-view-transitions-2 Needs Edits Needs Testcase (WPT)
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

When running a scoped view transition, we need to effectively pause rendering for an element so that it doesn't partially update (the callback is async).

When doing this, the size of the element may change so we have to gutter or overflow the pixels we're displaying here. In order to minimize this, and possibly improve performance, we should apply content-visibility: hidden and contain-intrinsic-size: auto to this element while the capture is happening. We can do this automatically.

@skobes-chromium @chrishtr

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the scoped view transition and capture behavior described in the CSS View Transitions 2 context. Work out how the capture duration should apply content-visibility: hidden and contain-intrinsic-size: auto to the element, including size changes during the asynchronous callback. Done means the behavior is specified consistently and the captured pixels are not partially updated or unnecessarily exposed.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.