Cross-browser visual testing tools and a practical test matrix
Choose a cross-browser visual testing tool, build a Playwright browser matrix, and distinguish WebKit coverage, mobile emulation and real-device testing.
A cross-browser visual testing tool needs to capture or render the interface in each browser environment you support, then compare each result with its own approved reference. Comparing a Chrome screenshot directly against a Firefox screenshot answers a different question: how the browsers differ today, rather than whether either has regressed since the last release.
Choose the tool after choosing the required environments. A desktop WebKit run, an emulated phone viewport and a real iPhone test provide different evidence. More browser names in a pricing table do not necessarily cover the device behavior your customers use.
Compare the capture model, not just the browser list
| Tool | Workflow to evaluate | Questions to resolve in a pilot |
|---|---|---|
| Playwright Test | Run authored tests in Chromium, Firefox and WebKit projects | Can you maintain per-project references and the renderer? |
| Chromatic | Cloud snapshots from Storybook or supported end-to-end integrations | Does the integration capture your states, and which browsers does the plan include? |
| Percy | Capture application states through an SDK and review cloud-rendered results | Which browser versions, widths and account entitlements cover the release? |
| Applitools | Evaluate cloud rendering and visual comparison through the intended integration | How are your browser and page checkpoints counted, and are all required states supported? |
| SmartUI | Visual comparisons integrated into web or mobile automation | Which actual browser/device combinations will you run, and how many images do they consume? |
For a team already using Playwright, start with its browser projects to establish what coverage you need. A hosted service can add review and rendering infrastructure, but you should still test your own fonts, canvas content, authentication and embedded widgets. A successful upload is not proof that the remote rendering reproduced the intended state.
Browser engines, branded browsers and real devices
| Check | What it tells you | What it does not establish |
|---|---|---|
| Chromium, Firefox and WebKit | Behavior in the runner's installed engine builds | Every released browser and operating-system combination |
| Chrome or Edge channel | Behavior in that installed branded browser | Enterprise policy or extension behavior unless configured |
| Mobile emulation | Layout and supported emulated device settings | Physical-device behavior, native keyboards or every mobile browser UI interaction |
| Real device/browser | Results on the selected device and OS version | Other versions or devices that were not tested |
Playwright documents that its WebKit build is not branded Safari. It uses a patched build derived from WebKit sources. That makes WebKit useful for engine coverage, but it is not evidence that your site passed on a particular iPhone and Safari version. Use a suitable real-device check when that is a release requirement.
Set up cross-browser screenshots with Playwright
The following projects create separate browser references for a desktop page. Keep your existing testDir and server configuration if you already have them. Set BASE_URL to a test deployment and install all three engines with npx playwright install --with-deps chromium firefox webkit.
import { defineConfig, devices } from "@playwright/test";
const baseURL = process.env.BASE_URL;
if (!baseURL) throw new Error("Set BASE_URL to the test deployment");
export default defineConfig({
testDir: "./tests/visual",
use: { baseURL },
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
{ name: "firefox", use: { ...devices["Desktop Firefox"] } },
{ name: "webkit", use: { ...devices["Desktop Safari"] } },
],
});Save an example test as tests/visual/pricing.spec.ts, replacing the path and landmark with a real stable page in your application. Use fixture data and wait for the actual state before capturing.
import { test, expect } from "@playwright/test";
test("pricing page", async ({ page }) => {
const response = await page.goto("/pricing");
expect(response?.status()).toBe(200);
await expect(page.getByRole("main")).toBeVisible();
await page.evaluate(() => document.fonts.ready);
await expect(page).toHaveScreenshot("pricing.png", {
fullPage: true,
animations: "disabled",
});
});Create and review the initial references in the same environment that runs CI. Run all three projects with npx playwright test; use --project=webkit to investigate one engine. Do not normalize every browser into a single reference file, and do not automatically overwrite a failing reference.
Build a matrix around customer risk
- Start from your support policy, traffic and prior defects. Include a browser in the required release checks when an important flow must work there.
- Combine browsers with representative states: a long heading, validation error, open menu, populated table and empty view. A matrix of only the home page can miss the important defect.
- Use narrow and wide widths to cover responsive composition. If a breakpoint caused a past regression, add cases immediately around it.
- Move lower-priority combinations to scheduled checks only when the delay is acceptable. Do not assume a nightly failure is acceptable for every checkout or account flow.
- Revisit the matrix after support-policy, CSS-library and browser changes. Record why each case exists so it can be maintained deliberately.
Sixty pages at two widths across three browsers produce 360 captures for each full run, before additional states or retries. That arithmetic is useful for planning, but billed usage depends on the service. Chromatic's extra browsers require an eligible tier and still participate in its snapshot calculation; a tier upgrade does not make the matrix free.
SmartUI explicitly says more browser, device and viewport combinations generate more comparisons. Its free 2,000 screenshots are a lifetime allocation. For recurring quotas, copied references and a cost worksheet, see free and low-cost visual testing tools.
How to evaluate AI cross-browser comparison
Use the same small evaluation set for each candidate: an unchanged page with minor rendering noise, a deliberately clipped button, a missing icon and an intended redesign. Ask whether the report preserves the evidence and makes the important defect obvious. Record false alarms and missed changes separately; a quiet report is useful only if it still finds the defects you care about.
AI comparison cannot recover a browser or state that was never captured. Keep capture success, image comparison and approval as separate results. The CI/CD setup guide shows how to handle failed captures and unavailable AI review without calling them successful checks.
Frequently asked questions
What is a good cross-browser visual testing tool?
Playwright Test is a useful starting point for teams that already maintain browser automation. Chromatic, Percy, Applitools and SmartUI are candidates when hosted review or rendering is needed. Pilot the required browsers, states and reviewer workflow before selecting one.
Should I compare Chrome screenshots with Firefox screenshots?
For regression testing, compare each browser with its own approved reference from the same environment. Directly comparing two browsers can help investigate compatibility differences, but it is not the same as detecting a change between releases.
Does Playwright WebKit test Safari on an iPhone?
No. Playwright uses a patched WebKit build rather than branded Safari, and mobile emulation is not a physical iPhone. Use real-device testing when a particular iOS and Safari version is part of your release requirements.
Does cross-browser visual testing cost more?
Additional browser, viewport and state combinations create more work and often more billed images. Even a self-managed runner consumes more CI and reference storage. Check the provider's counting rules instead of assuming a multi-browser plan has unlimited captures.
Sources
- Playwright browser projects and WebKit versus Safarichecked 2026-11-07
- Playwright visual comparisonschecked 2026-11-07
- Chromatic browser supportchecked 2026-11-07
- Chromatic billing across browsers and modeschecked 2026-11-07
- Chromatic Playwright capture modelchecked 2026-11-07
- Percy product overviewchecked 2026-11-07
- Applitools platform overviewchecked 2026-11-07
- SmartUI pricing and comparison countschecked 2026-11-07