Re: [csswg-drafts] [css-view-transitions-2] Rename `:active-view-transition()` pseudo-class (#9972)

> > I think the problem with the name `active-view-transition` is the confusion on what actually goes in the argument.
> 
> Something like `:active-view-transition(type: <ident>)` would make this more clear, but I don’t think there’s a precedent in CSS that would allow named arguments in selectors. 

Can be `:active-view-transition(type slide-in)`, similar to `:nth-child(2 of .class)`.

Also would not make sense to require the name if a-v-t only accepts 1 argument over time.
> 
> > A beginner mistake would be to put a view-transition-name instead of the transition `type` for instance.
> > These kinds of mistakes on "similar but not quite exact things" are very easy to make by beginners.
> 
> That looks like something for DevRel / documentation to clear up.

I tend to agree. It's a mistake that's easy to spot and fix.

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


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

Received on Wednesday, 21 February 2024 11:20:40 UTC