Re: [csswg-drafts] [css-view-transitions-1][cssom] Clarify how `getComputedStyle` should be have with view-transition pseudo-elements (#9880)

> The difficulty here is that some of our view transition styles are conditional on the structure of the tree. For example, isolation is only set on the pair if it has two children.

The behaviour per spec is such that the static UA CSS rules [here](https://drafts.csswg.org/css-view-transitions-1/#ua-styles) are always in the user agent origin. And the [dynamic style sheet](https://drafts.csswg.org/css-view-transitions-1/#document-dynamic-view-transition-style-sheet) which has the tree structure dependent CSS won't be there if there is no transition. So we could compute the pseudo-element style based on that?

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


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

Received on Friday, 22 March 2024 23:50:06 UTC