concept

Browser compatibility data — CSS reference

Browser Compatibility Data records feature support, including version information and qualifiers such as flags or prefixes. Read the exact feature key and notes, not just the broad property row. A runtime supports query checks whether a syntax is accepted by the local engine and cannot replace the data set or guarantee correct behavior.

Formal Syntax & Structure

css syntaxcss
CSS.supports("display", "grid")

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>browser-compatibility-data</title><style>body{margin:8px;font:16px/1.5 sans-serif;color:black;background:white}#a{box-sizing:border-box}
</style><body><div id="a">Example</div></body></html>
CSS Reference