Re: [csswg-drafts] [css-cascade-6] Named scopes proposal (#9742)

I think a scope _statement_ would be useful too? It would be similar to a layer statement.

Create a named scope using a scope statement:
```css
@scope foo (.start) to (.end);
```

Then use it without specifying `<scope-start>`/`<scope-end>`:

```css
@scope foo {
  p { color: red; }
}
```

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


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

Received on Saturday, 16 March 2024 18:45:18 UTC