Re: [csswg-drafts] [css-view-transitions-2] Creating 'classes' of transition groups (#8319)

> By contrast, one may think that ::view-transition-group(*).box may be written as .box

@vmpstr My primary proposal is `.box::view-transition-group(*)`. This follows the pattern of various other pseudo elements in CSS such as `::scroll-thumb`, `::marker` etc.

These pseudo elements aren't DOM elements and applying styles to the DOM element itself doesn't usually affect them. Yet, we understand that it is a pseudo element *associated* with that particular DOM element. I think the same principle holds here.

The mental model is no different than `::before` or `::after` or `::marker` IMO.

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


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

Received on Saturday, 9 December 2023 13:29:06 UTC