Re: [csswg-drafts] [scroll-animations-1] blocking effects of timeline-scope (#8915)

Cross-referencing https://github.com/w3c/csswg-drafts/issues/10145 after the naming discussion and the names escaping the Shadow DOM sparked again there.

Building onto [Flackr’s proposal](https://github.com/w3c/csswg-drafts/issues/8915#issuecomment-1883461265): what if we had a separate keyword to contain the names? And what if it was a function?

Something like:

- `contain: names(all)`
- `contain: names(none)`
- `contain: names(view-transition scroll-timeline)`

_(Could also be a property `contain-names` with `view-transition` as value … but you get the idea)_

The UA stylesheet could sport something like `:host { contain: names(all); }`. Names that are not contained would “bubble up”, limited to names defined in custom elements that have an open shadow root (closed shadow roots would be excluded).

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


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

Received on Monday, 17 June 2024 18:47:02 UTC