Browsercompat Compare Support
browsercompat_compare_supportCompute whether a set of web features clears an explicit browserslist target query. Returns a per-feature verdict, the target browser and version that fails, the share of tracked traffic the targets cover, and unchecked_targets for every resolved target browser with no compatibility data. A feature is never reported as clearing a target the server could not evaluate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resolve | No | When true, fall back to the search index and accept its single unambiguous top hit for each entry. Off by default so a typo returns a miss you can correct rather than a confident answer about the wrong feature. | |
| targets | Yes | A browserslist query, for example "defaults" or "> 0.5%, last 2 versions", 1 to 500 characters. Required: with no query browserslist would read config from the process working directory rather than from your project. | |
| features | Yes | Up to 20 entries, each a browser-compat-data key such as css.selectors.has or a web-features id such as has, 1 to 200 characters. An empty or longer entry is rejected against this schema; a whitespace-only entry returns invalid_feature_input. Call browsercompat_search_features first for any entry whose key you do not already know. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| results | No | Per-feature verdicts against the resolved targets. | |
| all_clear | No | True only when every feature clears and unchecked_targets is empty. | |
| query_echo | No | The targets query as the server parsed it. | |
| totalCount | No | Number of feature results returned. | |
| attribution | No | Required attribution for the caniuse-derived coverage figures in this response. | |
| data_version | No | Vintage of each bundled dataset behind this answer. | |
| uncheckedNotice | No | Names the target agents that were not evaluated and their combined usage share. | |
| targets_resolved | No | Every browserslist token that was evaluated. | |
| unchecked_targets | No | Every target the server declined to claim a verdict for, with the reason. | |
| target_coverage_percent | No | Share of tracked global traffic the evaluated targets cover. | |
| unchecked_coverage_percent | No | Share of tracked global traffic the unevaluated targets cover. |