Re: [csswg-drafts] [css-view-transitions-2] CSS only way to transition between list <-> detail views (#8209)

> I'm assuming the `next` and `previous` pseudo-classes in the suggestion above would activate only on the element with the href that initiated the navigation?

Yes

> 
> That would only work for a narrow set of cases. For example, you have a link underneath an image for the list entry. How do you tag that image element in this case?

```css
.item:has(a:next) img.poster {
}
```

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


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

Received on Monday, 5 June 2023 18:04:57 UTC