Re: [csswg-drafts] [css-view-transitions-2] Ignore offscreen elements from participating in transitions (#8282)

Another case to consider is https://simple-set-demos.glitch.me/raf-dust-2/

```js
// Dummy element for the dust
for (const name of ['dust-1', 'dust-2']) {
  const div = document.createElement("div");
  div.style.viewTransitionName = name;
  div.style.contain = "paint";
  document.body.append(div);  
}
```

These elements are created to produce groups that can be used within the transition, but they don't relate to any real content. They're only in the "old" view.

It feels like this would become unreliable under the proposed behaviour.

-- 
GitHub Notification of comment by jakearchibald
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8282#issuecomment-2051247009 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 April 2024 08:14:40 UTC