Re: [csswg-drafts] [css-view-transitions-2] Declarative opt-in for cross-document navigations (#8048)

Not a fan of this `:has()` approach. Feels rather _hacky_.

Iterating on the at-rule – which makes more sense to me – here’s two variants on that:

1. If more configuration things like this are planned over time _(e.g. global custom properties)_, maybe instead of a new at-rule `@cross-document-transition`, it could be a descriptor _(property?)_ in `@document`? I.e. `@document { cross-document-transition: allow; }`

2. Maybe, instead of a new at-rule, it would be treated as a media condition? I.e. `@media (prefers-reduced-motion and cross-document-transition: allow) { … }`

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


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

Received on Wednesday, 17 May 2023 14:44:43 UTC