anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.23k stars 50 forks source link

Don't report errors when validated with @supports #181

Open kkmuffme opened 5 months ago

kkmuffme commented 5 months ago

https://developer.mozilla.org/en-US/docs/Web/CSS/@supports

@supports (content-visibility: hidden) {
    .foo {
        content-visibility: hidden;
    }
}

This shouldn't report an error. Same also for e.g. @supports (content-visibility: hidden) and (display: flex) { Any or conditions or if prefixed with not should continue to report errors just like now.