-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
css-view-transitions-2View Transitions; New feature requestsView Transitions; New feature requests
Description
Folllow up on #10334
We defined a few rules on how view-transition-group is computed:
- A few keywords (
nearest/normal/contain) - Some rules that define whether a group is valid (e.g. has to refer to an ancestor
view-transition-name)
We have all the information we need during style computation to compute a resolved view-transition-group, so hypothetically
getComputedStyle can already return the resolved group. It fits with other things that getComputedStyle does (colors, length, transforms etc). The other option is to resolve them when capturing
There are a few options:
- Style computation just passes things along to the view transition engine, reflecting the keywords and everything to
getComputedStyle - Style computation resolves the
nearest/normal/containkeywords, but doesn't resolve rules that depend on the existence ofview-transition-name. - Style computation resolves everything and
view-transition-groupis always computed to be a valid ancestorview-transition-name.
I think (3) would be the most useful for developers and consistent with other things getComputedStyle does, but perhaps the overhead on style computation is unnecessary.
Metadata
Metadata
Assignees
Labels
css-view-transitions-2View Transitions; New feature requestsView Transitions; New feature requests