Re: [csswg-drafts] [css-shared-element-transitions-1] when to update the pseudo element styles (#7812)

> I propose that we only update the styles once per frame, around rAF timing.

+1. In fact we should do after step 14 of [update the rendering](https://html.spec.whatwg.org/multipage/webappapis.html#update-the-rendering) loop. This allows all script callbacks to run before we query the element's layout size for generating the pseudo-element style.

> cause us to update the style & layout twice

The second style&layout is pretty cheap because it only needs to walk the pseudo-element tree. So I think that's reasonable.

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


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

Received on Friday, 30 September 2022 21:44:42 UTC