Re: [csswg-drafts] [css-cascade-6] reusable named scopes (#10336)

So the rough proposal would be something like: 

```css
@custom-scope --foo (.start) to (.end);

@scope --foo {
  /* styles scoped start to end */
}
```

What if I write a scope name and boundaries?

```css
@scope --foo (.start) to (.end) {
  /* styles scoped start to end */
}
```

I could imagine that as… 

- defining custom scopes on the fly
- concatenating parts of a scope definition (e.g. `@custom-scope --foo (.start); @scope --foo to (.end)`)
- getting the union of two scopes (though we would probably want a more defined and/or syntax for that)
- invalid

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


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

Received on Wednesday, 19 February 2025 20:11:57 UTC