[csswg-drafts] [css-variables-2] Is it possible in the future to allow variables to be defined outside the elements' `{}`? (#8159)

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

== [css-variables-2] Is it possible in the future to allow variables to be defined outside the elements' `{}`? ==
What I mean is that when defining CSS variables, it is not necessary to write it in the elements' `{}`, which is equivalent to a syntactic sugar, and the variables are implicitly bound to the `:root` element.

For example, the following two codes will be equal:

```
@media (max-width: 800px) {
    --foo: 123;
}
```

```
@media (max-width: 800px) {
    :root {
        --foo: 123;
    }
}
```

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


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

Received on Wednesday, 30 November 2022 17:01:39 UTC