Re: [csswg-drafts] [css-fonts-4][css-nesting] Nesting of @supports inside @font-face and font technology feature queries (#6520)

I tend to agree with @LeaVerou here, with

```
<supports-condition> = not <supports-in-parens>
<supports-in-parens> = ( <supports-condition> ) …
``` 
(https://drafts.csswg.org/css-conditional-3/#at-supports)

only the second part of your example is valid syntax. 

```
@supports not ( font-format(truetype variations) ) {
    div {
        background: blue;
    }
}
```

I am assuming the intent in your examples is to get blue background, or in other words: "use this block for fallback" is the intention. 

It seems to me we we can conclude this syntax (with condition in parentheses) would fulfil your expectation of code a) working in old browsers without `font-technology`/`font-format` support, as well as b) in browsers that do understand the condition function. 

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


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

Received on Wednesday, 20 October 2021 14:13:13 UTC