Re: [csswg-drafts] [css-view-transitions-2] Namespacing id vs css based view transition names (#11112)

I’m all for option 1:

- It’s much much simpler to reason about.
- There are a demos that currently do `#card-n { view-transition-name: card-n; }` so authors are fine with the names being shared.
- I would expect the outcome of `auto` to be the same as `attr(id <ident>)` on an element with an `[id]` attribute set.
- It allows transitions from `view-transition-name: hero` on page A to `img#hero` on page B. Think of page A being an overview page with lots of items and the author setting the `view-transition-name` on the fly to make sure that the clicked thumbnail morphs into the `img#hero` on page B

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


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

Received on Wednesday, 30 October 2024 16:17:09 UTC