-
Notifications
You must be signed in to change notification settings - Fork 715
[css-view-transitions-1] Where is “effects” defined? #9139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is about visual effects which apply to the content of an element and its descendants. The exact effects are: transform, filter, backdrop-filter, clip-path, mask / mask-image / mask-border, opacity.
But maybe including these effects in the snapshot is perhaps implied by the statement here : "Render element and its descendants, at the same size it appears in its node document, over an infinite transparent canvas, following the capture rendering characteristics."? So I can either make this a non-normative note. Or update the spec text to mention this exact list of effects. |
So I think this is trying to hook into a process that's unfortunately not fully written down clearly. It's sort of specified vaguely across a few places that spell out pieces of it: https://drafts.fxtf.org/filter-effects-1/#placement In essence this model describes a sequence of operations that happen in a particular order whenever an element that establishes an isolated group (which is at least somewhat defined in https://drafts.fxtf.org/compositing-1/ ) is being drawn:
(At least, I think that's what the spec is saying, and I hope it's correct!) I think this should be specified more clearly in a painting model spec (see #4965). Also note that https://drafts.fxtf.org/compositing-1/#csscompositingrules_CSS does specify that anything that establishes a stacking context establishes an isolated group. I think maybe the essence of what the view transitions spec should be saying is that the capture gets inserted between steps 3 and 4 above in the process of rendering the element itself (into an isolated group). This implies that all of the descendants are rendered normally (with the caveat that the view transition element is a backdrop root, as the spec already notes). I think this logic would also imply that If that makes conceptual sense, I think another question is then how to write it in spec language between the above cited section and perhaps also fitting some of it in https://drafts.csswg.org/css-view-transitions/#named-and-transitioning , to which it is closely related. I'd also note that I think @chrishtr knows these property interactions better than I do, and may have ideas here. |
This sounds correct to me also. |
That sounds correct. Ideal would be if the steps you mentioned above were defined in a painting spec, as a general algorithm for how an element is rendered. And VT could refer to it. |
In https://drafts.csswg.org/css-view-transitions-1/#capture-rendering-characteristics-algorithm
Where is “Effects” as used in this step defined? Are transforms “effects”? What about relative positioning? What about clipping? What about text decoration?
The text was updated successfully, but these errors were encountered: