How to Check a Website Fix With Chrome DevTools and an AI Agent

Use Chrome DevTools to reproduce a website bug before asking an AI agent to fix it. This guide shows how to identify the CSS rule behind a layout problem, give the agent a test it can repeat, and verify that the fix works on the page visitors actually see.
Contents
- Reproduce the problem in the browser
- Ask the agent for evidence
- Verify the fix, not just the screenshot
- What to take away
Reproduce the problem in the browser
Open the affected page in Chrome DevTools and enable the Device Toolbar. Choose Responsive, enter the width where the problem was reported, and repeat the action that triggers it. For a header, compare the page on load and after opening the menu or language list. Record the URL, viewport width and what actually overlaps. Chrome’s device mode simulates a viewport; if the issue depends on touch or browser-specific behavior, check a real device as well. Chrome Device Mode guide.
Next, inspect the two elements in the Elements panel. Use Styles to see which rules apply and Computed to check the values the browser ended up using. In a crowded header, I would start with width, margins and positioning on the two elements and their parent. Try one small change in DevTools and see what moves. That experiment changes the browser view; it is not a site deployment. DevTools CSS reference.
Ask the agent for evidence
The November 2026 DevTools release notes describe a CSS inspection tool for coding agents that can return matched rules and computed styles. If your agent has that integration, ask it to use those observations. If it doesn’t, give it the relevant rules and measurements from DevTools. In both cases the question is the same: which rule causes the two elements to occupy the same space at this width? Chrome DevTools release notes.
Here’s a brief you can adapt:
On the test page, at 390 CSS pixels, the language switcher covers part of the logo. Reproduce it before proposing a patch. Show the relevant computed widths and positions, and identify the rule or breakpoint that causes the conflict. Propose the smallest change that separates the elements without changing the desktop layout. Do not deploy or purge caches.
Give the agent a test it can repeat. For example: the logo, menu control and language switcher must stay inside the viewport; their visible boxes must not overlap; opening the language list must not make the navigation unusable. “Make it look better” gives the agent room to redesign the page. Specific conditions let you check whether it fixed the problem you reported.
Verify the fix, not just the screenshot
My initial header check missed the gap between test widths. The next pass included 390 pixels, several nearby widths, and both sides of the breakpoint where the language switcher moves. I checked that only one switcher was visible and that the menu could still open. The final pass covered 11 widths between 320 and 1440 pixels. That is evidence for those scenarios, not a guarantee for every browser or device.
Test sequence: reproduce the failure → inspect the rule → try a narrow patch → check neighboring widths and interactions → verify the page visitors actually get.
| Symptom | Check in DevTools | What confirms the fix |
|---|---|---|
| Logo and language switcher overlap | Compare element boxes and computed widths; inspect their parent and media rules | No overlap at the failing width or nearby widths |
| Menu is visible but hard to open | Check what sits above the button and try the interaction | The menu opens and closes without a second control blocking it |
| A control disappears after resizing | Inspect display rules on both sides of the breakpoint | One usable control remains visible across the transition |
| A fix appears only in a fresh test response | Compare ordinary and verified uncached responses for the page | The ordinary URL serves the new version; any cache change is scoped and approved |
That last check matters. In my case, the updated layout appeared in fresh responses while some usual desktop URLs still served old HTML. I treated those as two separate results: the layout fix passed, but the cached pages had not caught up. Check the ordinary public URL before calling the job done. A query parameter is only useful for testing if you have verified how your cache handles it.
What to take away
Start with one failing width, one concrete symptom and one check that a person can repeat. Let the agent explain the CSS and propose a small change. Then test the widths on either side, try the controls that users actually tap, and check the normal public response. Keep a screenshot or a short test log so the next change has a baseline. The goal is to be able to say exactly what you fixed and what you verified.


