Platform

Solutions

Resources

Platform

Solutions

Resources

Platform

Solutions

Resources

Blog

Cross-Browser Testing: What It Is and How to Do It

Rishabh Kumar

Published on

Cross-browser testing

Table of contents

Your web app doesn't behave exactly the same in every browser. Chrome, Safari, Firefox and Edge each display pages, run JavaScript and interpret CSS in their own way. So the same app can look and work differently depending on which browser someone opens it in.

For businesses, that's a real problem, not a technical curiosity. A Salesforce set-up that works in Chrome but breaks in Safari means people can't do their jobs, support teams get tickets that shouldn't exist, and work slows down.



What Is Cross-Browser Testing?

Cross-browser testing checks that a website or web app works and looks right in every browser, browser version, operating system and screen size your users actually use. It doesn't assume the app works everywhere. It checks.

Cross-browser testing

What It Covers

Type of Check

What It Looks At

Example

Functional

Features work the same way everywhere

The "Submit order" button works in Safari as well as Chrome

Visual

Pages look right in every browser

A menu doesn't overlap the page content in Firefox

Responsive

Layouts adapt to different screen sizes

The checkout fits on an iPhone screen without scrolling sideways

Accessibility

Assistive technology works across browsers

A screen reader announces form errors in Safari and Edge

Performance

Pages load and respond quickly everywhere

A dashboard isn't much slower in one browser than another

Cross-browser testing is often confused with browser compatibility testing. Our guide to browser compatibility testing explains how the two overlap and where they differ.

What a Real User Base Looks Like

Take a company using Salesforce. Its users won't all be on the same browser:

  • Sales reps on Chrome, on Windows laptops

  • Field teams on Safari, on MacBooks and iPads

  • Service staff on Firefox, on a mix of devices

  • Executives on Edge, on Surface tablets

  • People on the move switching between Chrome on Android and Safari on iPhone

Every one of them expects the app to work the same way. Cross-browser testing checks that it does.



Why Browsers Behave Differently

Most differences come down to the engine each browser uses to display pages and run code.

Engine

Browsers That Use It

Things to Know

Blink

Chrome, Edge, Opera, Samsung Internet

Used by most desktop and Android browsers, and often the first to support new web features

WebKit

Safari, and almost every browser on iPhone and iPad

On iPhone, even Chrome and Firefox use WebKit, so a Safari bug can affect every iPhone user. Since iOS 17.4, Apple allows other engines in the EU, but most browsers there still use WebKit

Gecko

Firefox

Its own engine, so it can handle CSS and JavaScript slightly differently from the others

On top of the engine, browsers also differ in how they handle fonts, form controls, cookies and storage, media playback and screen sizes on mobile.



Common Cross-Browser Bugs

Bug

What Happens

Where It Often Shows Up

Layout differences

Elements overlap, wrap or misalign

Older Safari versions, and Firefox with some flexbox and grid layouts

Unsupported CSS

A newer CSS feature is ignored, so the page looks broken

Browsers that haven't added the feature yet

JavaScript differences

Code that works in one browser throws an error in another, like some date formats

Safari is often stricter

Form controls

Date pickers, dropdowns and file uploads look and behave differently

Mobile Safari, which uses the phone's own controls

Cookies and storage

Logins or saved data disappear

Safari, which limits cookies and storage more strictly

Fonts

Text looks heavier, lighter or a different size

Between Windows and macOS

Mobile screen size

Full-height sections spill off the screen when the address bar shows

iPhone Safari

A common way to avoid many of these is to check whether a browser supports a feature before using it, rather than assuming:

CSS

/* Use grid where it's supported, with a simple fallback */
.product-list {
  display: flex;
  flex-wrap: wrap;
}

@supports (display: grid) {
  .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
/* Use grid where it's supported, with a simple fallback */
.product-list {
  display: flex;
  flex-wrap: wrap;
}

@supports (display: grid) {
  .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
/* Use grid where it's supported, with a simple fallback */
.product-list {
  display: flex;
  flex-wrap: wrap;
}

@supports (display: grid) {
  .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
/* Use grid where it's supported, with a simple fallback */
.product-list {
  display: flex;
  flex-wrap: wrap;
}

@supports (display: grid) {
  .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

JavaScript

// Only use the Share API if the browser supports it
if (navigator.share) {
  shareButton.addEventListener("click", () =>
    navigator.share({ title: "My order", url: orderUrl })
  );
} else {
  shareButton.textContent = "Copy link";
}
// Only use the Share API if the browser supports it
if (navigator.share) {
  shareButton.addEventListener("click", () =>
    navigator.share({ title: "My order", url: orderUrl })
  );
} else {
  shareButton.textContent = "Copy link";
}
// Only use the Share API if the browser supports it
if (navigator.share) {
  shareButton.addEventListener("click", () =>
    navigator.share({ title: "My order", url: orderUrl })
  );
} else {
  shareButton.textContent = "Copy link";
}
// Only use the Share API if the browser supports it
if (navigator.share) {
  shareButton.addEventListener("click", () =>
    navigator.share({ title: "My order", url: orderUrl })
  );
} else {
  shareButton.textContent = "Copy link";
}

For more on fixing layout problems that only appear in some browsers, see our guide to CSS cross-browser compatibility.

And since many cross-browser bugs are Safari-specific, our guide to Safari browser testing covers the most common ones and how to test for them.



Why Cross-Browser Testing Matters

A Consistent Experience

When people hit broken layouts, missing features or slow pages in their usual browser, they lose confidence in the app. Adoption drops, frustration builds, and support tickets pile up.

Revenue and Business Continuity

Browser-specific bugs have a real cost:

  • A checkout that fails in one browser loses sales

  • Service staff who can't create cases lose hours of work

  • Managers who can't approve requests hold up business processes

  • Executives who can't open dashboards lose sight of what's happening

Accessibility

Accessibility standards like WCAG don't list specific browsers, but people using screen readers, keyboard navigation and other assistive technology use a range of browsers. If an accessibility feature only works in one of them, those users are shut out. That's a risk under laws like the ADA in the US, the Equality Act in the UK and the European Accessibility Act.

You Can't Control Which Browser People Use

  • Bring-your-own-device policies mean staff use their own phones and laptops

  • Field teams work on mobile devices with different browsers

  • Partners and suppliers access your apps on set-ups you can't see

  • Browser preferences vary from country to country



Why Cross-Browser Testing Is Hard

Challenge

What Happens

Too many combinations

Three browsers, two operating systems and three versions already gives 18 combinations. Add mobile devices and screen sizes, and it quickly reaches hundreds

Constant browser updates

Browsers update every few weeks. Tests built around specific elements or timings can break as browsers change

Flaky results

Differences in timing and rendering speed make some tests pass in one browser and fail in another, for no real reason

Expensive infrastructure

Keeping virtual machines, emulators and real devices up to date takes money and time

Slow runs

Running a two-hour suite one browser after another across ten browsers takes 20 hours, which makes daily testing impossible

If tests keep passing in one browser and failing in another, our guide to flaky tests explains the usual causes and how to fix them.



How to Do Cross-Browser Testing


  1. Decide Which Browsers to Test

Start with your analytics, not guesses. Find out which browsers, versions and devices your users actually have, and test those most thoroughly.

  • Find the five or so browser and device combinations that cover most of your users

  • Support the current version of each browser, plus the one before it

  • Start with business-critical journeys, then add less important features

  • Expand gradually, rather than trying to cover everything at once

A typical starting point looks like this:

Browser and Platform

Testing Depth

Latest Chrome on Windows and macOS

Full regression

Latest Safari on macOS and iPhone

Full regression

Latest Edge on Windows

Full regression

Latest Firefox on Windows

Key journeys

Chrome on Android

Key journeys

Previous major version of each

Smoke tests


  1. Choose Manual, Automated or Both

Manual Testing Is Best For

Automated Testing Is Best For

Checking how pages look and feel

Running the same checks across dozens of browsers

Judging ease of use

Identical, repeatable runs every time

Exploring to find unexpected problems

Testing on every change in your CI/CD pipeline

Decisions that need human judgement

Repeated runs that would take far too long by hand

Most teams do both: they automate functional and smoke tests across all their browsers, and keep manual testing for visual reviews and exploration.


  1. Choose Where to Run Tests


Your Own Browsers and Devices

A Cloud Testing Platform

Control

Full control over every set-up

Less control, but no set-up to manage

Coverage

Limited to the devices you own

Thousands of browser and device combinations on demand

New browser versions

You install and update them

Usually available straight away

Speed

Limited by your hardware

Many tests in parallel

Cost

Up-front hardware, plus upkeep

Ongoing subscription

Many teams use both: local browsers for quick checks while developing, and a cloud platform for full cross-browser runs in their pipeline.


  1. Decide What "Working" Means in Older Browsers

You don't always need identical behaviour everywhere. Decide what's acceptable:

  • Core journeys must work in every supported browser

  • Extra touches can switch on in newer browsers that support them

  • Older browsers can get a simpler experience, as long as nothing breaks

  • Code checks what each browser supports, and adapts

That reduces how much you need to test, while still making sure everyone gets something that works.


  1. Run Tests in Parallel, in Your Pipeline

Running browsers one after another multiplies your test time. Running them in parallel on cloud infrastructure means a suite takes about as long across ten browsers as it does across one.

Build it into your pipeline:

  • Smoke tests on your main browsers for every code change

  • Focused cross-browser tests on pull requests, before merging

  • Full cross-browser regression before every production release


  1. Check How Pages Look, Not Just Whether They Work

Functional tests check behaviour, but they can miss visual differences. Visual testing takes screenshots in each browser, compares them with an approved version, and flags changes a person would notice, like a broken layout, while ignoring tiny rendering differences.

If you're comparing tools for any of these steps, see our roundup of the best cross-browser testing tools.



‍Cross-Browser Testing Best Practices

Practice

Why It Helps

Start small, then expand

Get your key journeys working on your main browsers before adding more

Write down your browser plan

Everyone knows what's covered, at what depth, and what isn't

Test in your pipeline

Browser-specific bugs are caught while the change is fresh

Use real devices for mobile

Emulators can miss touch, performance and rendering quirks on real phones

Agree what visual differences are acceptable

Small font and spacing differences between systems are normal. Layout breaks that affect use aren't. Agreeing this stops time being wasted chasing pixel-perfect results

Test on realistic networks

Pages that are fine on office Wi-Fi can be unusable on a slow mobile connection

Find elements by what users see

Tests that find buttons by their label and position hold up better across browsers than ones relying on fixed IDs or paths



Cross-Browser Testing Checklist

  • Key journeys work in every supported browser

  • Pages look right in each browser, with no overlaps or cut-off content

  • Layouts adapt properly on phones, tablets and desktops

  • Forms work, including date pickers, dropdowns and file uploads

  • Logins and sessions work, including in Safari

  • Error messages show and are announced by screen readers

  • Keyboard navigation works everywhere

  • Videos and audio play correctly

  • Pages load in a reasonable time in every browser

  • The previous version of each main browser still works



How to Measure Cross-Browser Testing

Metric

What It Tells You

Browser coverage

The share of your users' browsers that get automated testing

Browser-specific bugs caught vs missed

How many browser bugs are found in testing, and how many reach users

How often the full matrix runs

Whether cross-browser testing keeps up with releases

Time spent fixing tests

How much browser updates cost you in upkeep

Browser-related support tickets

How often real users hit browser problems

The value usually shows up in four places: fewer browser bugs reaching users, less time spent testing by hand, faster releases because testing runs in parallel, and less spent on maintaining your own devices and browsers.

Track your own numbers before and after automating, so you can show the difference.


How Virtuoso QA Helps with Cross-Browser Testing

What You Need

How Virtuoso QA Helps

One test for every browser

Tests are written in plain English, not browser-specific scripts, so the same test runs in every browser without changes

Wide coverage without your own devices

Tests run across 2,000+ browser and OS combinations in the cloud, with no device lab, virtual machines or browser installs to manage

Tests that hold up across browsers

Elements are found by their label, position and context, rather than fixed paths that differ between browsers

Less upkeep after browser updates

When a browser update or UI change breaks a step, Virtuoso QA suggests a fix for your team to accept or reject

Faster runs

The execution planner runs tests in parallel across all your browsers, on a schedule or from your pipeline

Clear failures

Results for every browser appear in one report. Failures come with screenshots, page structure and network logs, so developers can see why a step failed in one browser and not another

To see how one plain English test runs across every browser you support, take a look at Virtuoso QA's cross-browser testing.



Related Reads

Cross-Browser Testing FAQs

Which browsers should I test?

How often should cross-browser testing occur?

Why do websites look different in different browsers?

Is testing in Chrome's device mode enough?

Is cross-browser testing the same as browser compatibility testing?

Can cross-browser testing be automated?

Written by

Rishabh Kumar

AI Testing & Quality Engineering Contributor

Rishabh leads business development and marketing at Virtuoso QA. He writes about AI-powered test automation, end-to-end testing, self-healing tests, and quality engineering, exploring how these capabilities can improve test coverage, reduce test maintenance, and support reliable software releases.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA