Skip to content

Commit

Permalink
[css-view-transitions-2] Specificity of :active-view-transition()
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 w3c#9546
  • Loading branch information
noamr committed Nov 23, 2023
1 parent b373bb8 commit 71cfae7
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

0 comments on commit 71cfae7

Please sign in to comment.