[csswg-drafts] [css-cascade] Allow declarations directly in @scope? (#10389)

andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-cascade] Allow declarations directly in @scope? ==
Currently, `@scope` only accepts _rules_ in its body. If you want to apply something to the scoping root itself, you need to use a `:scope` rule:

```
@scope (div) {
  :scope {
    color: green;
  }
}
```

However, ever since [relaxed nesting](https://github.com/w3c/csswg-drafts/issues/7961) was introduced (where we first try to parse something as a declaration, and otherwise try it as a nested rule), we should be unblocked if we wanted to support direct declarations in the rule.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10389 using your GitHub account


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

Received on Tuesday, 4 June 2024 13:34:27 UTC