Home › CSS Tutorial › CSS @supports
CSS @supports
Use features only where supported.
@supports (property:value) applies rules only if the browser understands them, which gives safe fallbacks.
Example code
<style>
.a{background:#ccc;padding:10px}
@supports (display:grid){.a{background:#1b998b;color:#fff}}
</style>
<div class='a'>Green when grid is supported</div>