CSS
The @supports query
To test whether a browser supports a certain CSS feature, the @supports
rule can be used.
@supports (display: grid) {
.container {
display: grid;
}
}
Add not
to test whether a browser doesn't support a feature.
@supports not (display: grid) {
.container {
display: flex;
}
}
See MDN for more details