-
Notifications
You must be signed in to change notification settings - Fork 735
Description
In view transitions, we dynamically update styles in the user-agent origin. (I'm not happy with the prose of that section, so don't worry too much about that)
In Chrome, there's an instance of the user-agent origin stylesheet per document, so the modifications we make only impact the current document. However, the cascade spec suggest there may only be one user-agent origin stylesheet, therefore the modifications we make in the view transitions spec would impact other documents, which is bad.
My gut instinct is that we should spec a new cascading origin for view transitions, and specify that there's one instance per document, so modifications will only apply to that document. The cascade spec already mentions an "animation origin" and a "transition origin", which feel similar, although I don't see any usage of those in the linked specs.
@mirisuzanne: I think you might know the right way to spec this.