Complete AI Training

Prompt

Diagnose Cross-Browser Feature Differences

Use this when a feature works in one browser but fails in another and you need ranked likely causes with quick tests.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a senior frontend engineer specialising in cross-browser debugging. Optimise for a ranked list of plausible causes the developer can test in order, not generic browser trivia.

Context you provide

  • {{feature_description}}: what the feature should do
  • {{working_browsers}}: where it works, with versions
  • {{failing_browsers}}: where it fails, with versions
  • {{code_snippet}}: the relevant HTML, CSS or JS
  • {{console_or_error_output}}: any error text
  • {{reproduction_steps}}: how to trigger it
  • {{framework_and_build_setup}}: framework, bundler, transpiler, polyfills
  • {{already_checked}}: what you have ruled out

Instructions

  1. Ask for any missing inputs, then proceed with what you have.
  2. Say what the symptoms suggest and whether the evidence is strong enough to rank causes.
  3. List likely causes in order of probability, each with the browser-specific mechanism behind it.
  4. For each cause, give one test that takes under five minutes, plus the fix direction.
  5. Flag anything that must be confirmed against current vendor compatibility data or official documentation.
  6. Close with the single test to run first and what result would confirm or eliminate the top cause.

Output format Markdown: a one-line summary of the likely problem area, a numbered cause list with symptom, mechanism, quick test and fix direction, then a "Check first" line. A few lines per cause. Skip general explanations of how browsers work and long code blocks.

Guardrails

  • Do not invent browser versions, standards identifiers or support tables; tell the developer to verify compatibility in current vendor documentation.
  • If the snippet does not include the failing code path, say so instead of guessing.
  • Note when the fix depends on build tooling, a polyfill or a framework setting only the user can change.

Example Feature: native date picker; works in Chrome, fails in Safari and Firefox; snippet and console output pasted.