Re: [csswg-drafts] [css-cascade-6] Introduce `:scope-end` pseudo to target end boundary (#8617)

I think it's an interesting proposal. I imagine it would only be allowed as the subject of a selector, so you can't select things nested further past the boundary (tho subject of the has selector might still work).

The main downside I see is maybe what @DarkWiiPlayer is getting at. If you want to a selector that includes (but is not limited to) lower boundaries, this would require duplication:

```css
@scope (.media) to (.content) {
  .my-usual.selector,
  .my-usual.selector:scope-end { /* match boundaries and non-boundaries */ }
}
```

There would be workarounds for that, like `.my-usual.selector:is(:scope-end, *)` - but I'm not sure that's ideal. Still maybe a useful feature? We could bring this to the group for further discussion?

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


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

Received on Monday, 11 December 2023 19:58:55 UTC