Re: [csswg-drafts] [css-view-transitions-1] Clarifications on stacking contexts (#8917)

I think the ambiguity here is related to how we describe painting of captured elements:

1. The spec text [here](https://drafts.csswg.org/css-view-transitions-1/#view-transition-stacking-layer:~:text=When%20a%20Document%27s%20active%20view%20transition%27s%20phase%20is%20%22animating%22%2C%20the%20boxes%20generated%20by%20any%20element%20in%20that%20Document%20with%20captured%20in%20a%20view%20transition%20are%20invisible.) says that any element being captured in a transition will not paint or hit-test. The root element can also have this bit set.
2. The spec text [here](https://drafts.csswg.org/css-view-transitions-1/#capture-the-image-algorithm:~:text=Render%20the%20region%20of%20document%20(including%20its%20canvas%20background%20and%20any%20top%20layer%20content)) says that when generating an image for the root, also include top layer elements.

Logically 1 would imply that only the root element is generating an invisible box. Top layer elements are being painted as usually. While all elements captured in an image would be generating invisible boxes.

https://github.com/w3c/csswg-drafts/pull/9159 should fix this.

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


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

Received on Thursday, 3 August 2023 23:22:58 UTC