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?

> 
> ```css
> /* 1 */ ::view-transition-group(foo) /* foo view transition name with any classes */
> /* 2 */ ::view-transition-image-pair(*.bar) /* any view transition name with a "bar" class */
> /* 3 */ ::view-transition-old(foo.bar) /* foo view transition name with at least class "bar" */
> /* 4 */ ::view-transition-new(foo.bar.baz) /* foo view transition name with at least "bar" and "baz" classes */
> ```
> 
> * 1 has specificity 1 (it's weighted as 1 but known as strong filter since it calls out a single item)

I don't understand why this is a "strong filter". It means that if you put (1) and (2) they would resolve in document order.

-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9887#issuecomment-1930440240 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 17:34:48 UTC