Re: [csswg-drafts] [css-view-transitions-2] Specificity of view transition pseudos with classes (#9887)

> > What if things are flatter and all worth 1 (except for *)?
> 
> This doesn't answer the question of "1 what"? Is it equivalent to 1 class/type/id/something new?
> 

I discussed this with Adam earlier today and it would be 1 type.

I think it could actually work:
- No compat issue with what is currently shipping
  - The ident used in a vt-pseudo now does not suddenly become more specific than a class-on-root selector with no ident
- It’s not complex: just cound the parts in vt‘s compound. The more you count, the more specific you are in selecting the right snapshot.
- Good separation between selecting the root and selecting the snapshots _(the one doesn’t really influence the other)_



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


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

Received on Tuesday, 6 February 2024 20:27:41 UTC