Re: [csswg-drafts] [css-view-transitions-2] Proposal for a view-transition-tree property (name tbd) (#10334)

> > What if we didn’t, and gave authors separate control?
> 
> The clipping here is a side-effect of the tree hierarchy of the pseudo-DOM. Authors can set `overflow` on the group pseudo to decide clipping but we can't conditionally clip some children under that pseudo. That would be its own CSS feature which can then be used with the pseudos as well.
> 
> So I'm not following how `view-transition-overflow` would change the pseudo-element hierarchy.

So clipping wouldn’t happen automatically? Authors would need to set `overflow: clip` on the group pseudo if they want it? That works too.

> > As for its values I was thinking of this: view-transition-parent: auto | transition-root |
> 
> Eh, `transition-root` is a valid custom ident right? That could collide with an author provided name so I don't think we can use that as a keyword unfortunately. But the idea sounds good.

Yes, as I noted it would require us disallowing that value as a value for `view-transition-name`.



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


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

Received on Thursday, 13 June 2024 10:45:47 UTC