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

> Ah, so with `.item:has(a:next) img.poster`, the first part checks if any DOM element in the subtree for a list item activates that pseudo-class. And if so, you can apply styles to any other element in that sub-tree?

Yep!
CSS is very expressive when it's used with the DOM.
So expressing something like next/previous navigation in the DOM itself rather than in some media-query gives a lot of flexibility. 

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