Re: [csswg-drafts] [css-contain-4] c-v: auto elements painted into snapshots for View Transitions (#8060)

> The issue discussed in https://github.com/w3c/csswg-drafts/issues/7874 was about discovering elements that are being skipped by c-v auto ancestors.

Right, so if an element has an ancestor being skipped by c-v auto during the discovery phase it can not participate in a transition. Are you concerned about the case where we decide that an element will participate in the transition. But c-v: auto gets added to an ancestor during the transition animations? It conceptually seems similar to transition constraints being broken mid-transition, like the `display: none` scenario [here](https://github.com/w3c/csswg-drafts/issues/7882#issuecomment-1315767620). So we could do the same thing and skip the transition?

> Can you clarify

The root snapshot is clipped to the snapshot viewport, described in the spec [here](https://drafts.csswg.org/css-view-transitions-1/#ref-for-computing-the-interest-rectangle:~:text=Render%20the%20region%20of%20the%20element%20and%20the%20top%20layer%20that%20intersects%20the%20snapshot%20viewport). Anything that's been clipped out of the snapshot, the browser can continue skipping.

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


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

Received on Monday, 9 January 2023 15:53:43 UTC