Re: [csswg-drafts] [css-conditional] testing support of properties and values with partial implementations (#3559)

I'm concerned that one-off keywords will greatly increase the burden on the writer's memory.

I have a `@feature` proposal, This is flexible enough to essentially do what JS currently does to create empty elements for detection. But I am not sure it's feasible.

```css
@feature --align-content-on-block {
 display: block;
 align-content: center;
}

@supports --align-content-on-block {
 .foo { /*  do something */ }
}

@feature --detecting-at-rule {
 @container style(--foo: true) {}
}
```

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


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

Received on Thursday, 30 May 2024 08:13:17 UTC