-
Notifications
You must be signed in to change notification settings - Fork 715
[css-view-transitions-1] Clarify the list of pseudo-elements that can be followed with :only-child
#9996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I admit I also have trouble understanding how |
It also occurs to me that there's no definition for group/image-pair (even though that one is more obvious) |
I think the spec is already pretty clear on this. For In the intro to the VT pseudos it shows a diagram of the tree-structure of the pseudos, which makes it clear that With only one of the See https://codepen.io/bramus/pen/mdabWzr for a demo: when you add a card there is only a |
Oh I totally missed that, thanks! Would be good if the spec was more explicit about which property on the captured element struct this relates to. Right now I assume it's "old image" and "new element", but it could be any of the "old" properties :) |
We can add a clarification, why not. Want to have a go at a PR @nt1m ? |
I'm guessing all the functional pseudo-elements can be followed by
:only-child
, but there are some clarifications I'd like to see:Does it apply to
::view-transition
? (It would always apply if yes?)Does it apply to
::view-transition-group(...)
/::view-transition-image-pair(...)
? (I'm guessing yes)Is an element with only with
display: none
siblings counted? (I'm guessing no)I guess I can go dig into Chrome's source to get the answer but it would be nice to have this explicitly put in the spec.
The text was updated successfully, but these errors were encountered: