Re: [csswg-drafts] [css-conditional-4] Feature detection for descriptors (#2463)

So to rewrite the previous examples using the proposed syntax:

Checking an **at-rule**

```css
@supports (@page) {
  // woohoo we have pages
}
```

Checking a **descriptor** in a specific at-rule

```css
@supports (@font-face{ src; }) {
  // yay webfonts
}
```

Checking a **descriptor value**  in a specific at-rule

```css
@supports (@font-palette-values{ base-palette: 1; }) {
  // yay stylable color webfonts
}
```

Checking **nested at-rules** (worry about writing this grammar)


```css
@supports (@supports (@font-palette-values{ base-palette: 1; })) {
  // yay pointless recursion
}
```

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


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

Received on Tuesday, 18 January 2022 13:52:39 UTC