[csswg-drafts] [mediaqueries-5] Unclear if @custom-media must precede usage (#6956)

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

== [mediaqueries-5] Unclear if @custom-media must precede usage ==
Reading through https://drafts.csswg.org/mediaqueries-5/#custom-mq it is unclear to me whether a `@custom-media` must be defined before it is is used, or if something like this is valid:

```css
@media (--modern) and (width > 1024px) {
  .a { color: green; }
}

@custom-media --modern (color), (hover);
```

Basically: does the substitution happen at parse time or at evaluation time?

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


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

Received on Saturday, 15 January 2022 22:44:33 UTC