Compatibility and interoperability evidence
Definition and purpose
Compatibility evidence answers different questions: browser compatibility data tracks support by feature and version, Baseline summarizes availability across its core browser set, and tests check specific behavior.
Syntax probe plus geometry
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CSS practice</title> <style> body { margin: 0; font: 16px sans-serif; color: #172033; background: white; } #a { display: grid; grid-template-columns: 90px 90px; gap: 6px; } </style> </head> <body> <div id="a"> <div id="b">First</div> <div id="c">Second</div> </div> <p id="status"></p> <script> const yes=CSS.supports("display","grid"); document.querySelector("#status").textContent="Grid syntax accepted: "+yes; </script> </body></html>The status reports syntax; the second item position is separate evidence.
Syntax and mental model
Use feature-level MDN Browser Compatibility Data (BCD) including partial support and notes. Baseline Newly available means support across the core set; Widely available follows 30 months of that availability. This is not a guarantee for every embedded browser, device or edge case. Web Platform Tests provide shared behavioral tests; a local test of one case cannot stand for the entire suite. Record exact browser version, OS, viewport, query result, actual geometry and fallback observation. Compare reports rather than collapsing them into one supported flag.
Compare the baseline
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CSS practice</title> <style> body { margin: 0; font: 16px sans-serif; color: #172033; background: white; } #a { display: block; } #b, #c { height: 24px; } </style> </head> <body> <div id="a"> <div id="b">First</div> <div id="c">Second</div> </div> <p id="status"></p> <script> const yes=CSS.supports("display","grid"); document.querySelector("#status").textContent="Grid syntax accepted: "+yes; </script> </body></html>The source-order stack remains usable without the grid enhancement.
Common mistakes
Do not claim cross-browser support from a Chromium-only run or equate Baseline with accessibility conformance.
Practice and next steps
After trying the examples, complete the linked coding exercise and review questions. Predict the result before running your code. Prerequisite: Emerging layout and conditional features. Next lesson: Responsive multi-page site.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Compatibility and interoperability evidence — knowledge check
Five questions on compatibility and interoperability evidence.
What does BCD document?
What does Baseline Widely available add?
What do WPT tests check?
What does the 100px track plus 14px gap predict?
What must accompany local test evidence?