Skip to content

Commit

Permalink
[css-view-transitions-2] Specificity of :active-view-transition() (#9629
Browse files Browse the repository at this point in the history
)

As per resolution, specificity is 1 pseudo-class (if *) or 2 pseudo-classes
(if a type ident)

Closes #9546
  • Loading branch information
noamr authored Nov 23, 2023
1 parent 2651543 commit 7b47e34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions css-view-transitions-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ It has the following syntax definition:
<dfn>&lt;vt-type-selector></dfn> = '*' | <<custom-ident>>#
</pre>

The [=specificity=] of an '':active-view-transition()'' is one pseudo-class selector if it has value is ''*'', and two if it has any other value.

An ''::active-view-transition()'' pseudo-class matches the [=document element=] when it has an non-null [=active view transition=] |viewTransition|, for which any of the following are true:

* The <<vt-type-selector>> is ''*''
Expand Down

1 comment on commit 7b47e34

@MrHBS
Copy link
Contributor

@MrHBS MrHBS commented on 7b47e34 Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo here

Please sign in to comment.