concept
Progressive enhancement — CSS reference
Progressive enhancement provides a usable baseline, then adds optional improvements when the environment permits. In this example the content stays visible even without Grid. Feature detection is one tool, not a substitute for testing actual layout.
Formal Syntax & Structure
css syntaxcss
display: block; @supports (display: grid) { ... }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>progressive-enhancement</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{display:block}@supports(display:grid){#a{display:grid;grid-template-columns:1fr 1fr}}</style><body><main id="a"><div id="b">First</div><div id="c">Second</div></main></body></html>