Skip to content
Bugwise
Menu
Web Testing

Cross-browser Testing

The same website can look and behave differently in Chrome, Safari, Firefox and Samsung Internet. Learn why, which browsers to test, what usually breaks, and how to hunt down browser-specific bugs.

40–55 min beginner Web

It’s Friday evening and a food delivery website launches its brand-new checkout. The team tested it all week: on their laptops, in Chrome, it was perfect. By 9 pm the support inbox is on fire. “I can’t find the Order button.” “The time picker does nothing.” Almost every complaint comes from an iPhone. In Safari, the Place order button sits hidden under the browser’s toolbar, and the delivery time picker throws a JavaScript error. Nobody had opened the page on an iPhone before release.

That’s what cross-browser testingCross-browser testingChecking a website works and looks right in different browsers and browser versions.Open in glossary → is for: making sure your website works for people using other browsers than the one on your desk.

Part Not started

Why it matters

  • Your users don’t all use Chrome. On phones, Safari has a huge share in many countries (every iPhone user has it), and Samsung Internet comes preinstalled on millions of Galaxy phones.
  • Browser bugs hit whole groups of people. If checkout fails in Safari, it fails for every iPhone user, which can be a third or more of your customers.
  • Developers usually work in one browser. Most front-end code is written and checked in Chrome. Testers are often the first people to open it anywhere else.
  • The bugs are invisible in “your” browser. You can’t find a Safari-only bug by testing harder in Chrome.

Cross-browser testing is one part of compatibility testingCompatibility testingChecking the product works across different devices, OS versions, browsers and screen sizes.Open in glossary →, which also covers devices, OS versions and screen sizes. (Screen sizes get their own lesson: Responsive Design Testing.)

Browsers vs rendering engines

A browser is the app you open: Chrome, Safari, Edge. Inside every browser is a rendering engineRendering engineThe part of a browser that turns HTML and CSS into what you see: Blink, WebKit or Gecko.Open in glossary → that turns HTML and CSS into pixels, plus a JavaScript engine that runs the scripts. There are many browsers, but only three engines that matter today:

EngineMade byBrowsers that use itJavaScript engine
Blink (Chromium)Google + othersChrome, Edge, Opera, Samsung Internet, Brave, VivaldiV8
WebKitAppleSafari on Mac, iPhone and iPad, plus every other browser on iOSJavaScriptCore
GeckoMozillaFirefox (on desktop and Android)SpiderMonkey

What this means for your testing:

  • Browsers that share an engine mostly behave the same. If it works in Chrome, it very likely works in Edge and Opera.
  • “Mostly” isn’t “always”. Samsung Internet is based on Chromium, but it is often several versions behind Chrome, and it adds its own features (like a content blocker and its own dark mode).
  • The real differences are between engines. A good minimum set covers all three: a Chromium browser, Safari (WebKit) and Firefox (Gecko).

Check this part

  1. A page works in Chrome on Android but a button is broken in Chrome on iPhone. Which browser should you also check first?

  2. Which pair of browsers shares the same rendering engine?

Users don't all use Chrome, and the real differences are between the three rendering engines: Blink, WebKit and Gecko.

Part Not started

Why the same page looks different

All browsers follow the same web standards, so why do they disagree? Because standards leave room for interpretation, new features ship at different times, and every browser adds its own touches.

AreaWhat differsExample
CSS supportNew features arrive in each engine at different timesA layout uses a CSS feature that an older Samsung Internet or iOS version doesn’t know, so it falls apart
Form controlsSelects, checkboxes, slidersSliderA control where you drag a thumb along a track to choose a value or a range between a minimum and maximum.Open in glossary → and file pickers are drawn by the browser or the OSSafari on macOS draws a native pop-up button; Chrome follows the site’s styling more closely
Date and time inputsEach browser has its own picker and formatA calendar popup in Chrome, a wheel picker on iPhone
FontsDifferent system fonts and text renderingSegoe UI on Windows is wider than San Francisco on Mac, so a label wraps onto two lines
AutofillBrowsers paint autofilled fields in their own colorsLight blue in Chrome, yellow in Safari
Default stylesEach browser has a built-in stylesheet for margins, buttons, focus ringsButtons and focus outlines look different unless the site resets them
JavaScript APIsNot every API exists everywhereThe Payment Request API exists in Chrome and Safari, not in Firefox
ExtensionsAd blockers and password managers change the pageAn ad blocker hides a newsletter box whose class name contains “banner”
Privacy featuresTracking protection blocks cookies and scriptsSafari’s Intelligent Tracking Prevention (ITP) and Firefox’s Enhanced Tracking Protection block or isolate third-party cookiesCookieA small piece of data a website stores in your browser, for example to keep you logged in.Open in glossary → (see Cookies, Sessions and Storage), so a login or payment widget inside an iframe stops working

Try it yourself. Here’s one delivery form as three browsers would draw it:

Same page, different browsers

One delivery form, three browsers. Switch between them and compare. Which differences are fine, and which are bugs?

engine: Blink
Midnight Grocer

Free delivery after 8 pm · width: 100vw

Delivery details

Delivery date10/24/2026
Time slot20:00 – 22:00

Groceries (14 items)€38.90

Delivery€3.90

Place order · €42.80
Verdict per browser
DifferenceChromeSafariFirefox
Date inputMinor bugAcceptableAcceptable
Dropdown (select)AcceptableAcceptableAcceptable
Scrollbars & page widthBugAcceptableBug
Autofill colorsBugBugAcceptable
Font renderingAcceptableAcceptableAcceptable

Check this part

  1. The date picker looks completely different in Safari than in Chrome, but it works and saves the right date. What is it?

  2. A payment widget inside an iframe stops working in Safari and Firefox. Which browser difference is a likely cause?

CSS support, form controls, fonts, autofill and privacy features differ between browsers, and different is fine as long as it isn't broken.

Part Not started

Choosing a browser matrix

You can’t test every browser, version and device. Instead, teams agree on a browser matrixBrowser matrixThe agreed list of browsers, versions and devices a site supports, and how deeply each is tested.Open in glossary → (also called a support matrix): the list of browsers that must work, and how deeply each one is tested.

  1. Start from analytics. Ask for real usage data from Google Analytics or a similar tool: browser, browser version, operating system and device type. Look at desktop and mobile separately, because the lists are very different.
  2. Cover the big ones. Typically: Chrome (Windows, Mac, Android), Safari (iPhone and Mac), Edge, Firefox, and Samsung Internet if you have many Android users.
  3. Pick versions. Chrome, Edge and Firefox update themselves every few weeks, so “latest + previous version” is usually enough. Safari is tied to the operating system: people on older iPhones are stuck on older Safari, so include the current and previous major iOS version.
  4. Sort into tiers. Not every browser needs the full treatment.
  5. Write it down and review it every few months, because usage changes.

An example matrix for an online shop:

TierWhat it meansBrowsers
Tier 1Full testing of every feature before each releaseChrome latest (Windows, Android), Safari on iOS (latest + previous major), Safari on macOS latest
Tier 2Main user flows (smoke test: login, search, checkout)Edge latest, Firefox latest, Samsung Internet latest, Chrome previous version
Tier 3“It works, but may look a bit different.” Fix only serious bugsOlder versions, Opera, other browsers with small usage

Check this part

  1. How should you decide which browsers to test?

  2. Why should the matrix include the current and previous major iOS version?

Use real analytics to build a tiered list of the browsers and versions you test, and review it regularly.

Part Not started

What usually breaks

These bugs show up again and again. Learn the patterns and you’ll know where to look first.

#BugWhat you seeTypical severity
1Layout gaps and gridsIn an older browser, cards and form fields stick together or the grid collapses into one long columnMedium
2Sticky and fixed elementsA sticky header stops sticking, or a fixed button jumps when the keyboard opens on iOSMedium–High
3100vh on mobile Safari (a full-height screen)A full-height screen is taller than the visible area, so a bottom button hides under the browser toolbarHigh
4Date and number inputsThe custom date picker doesn’t open; a number field accepts “e” or changes value when you scrollHigh
5Unsupported JavaScript APIA button does nothing and the console shows is not defined or is not a functionHigh
6Video autoplayThe hero video doesn’t play on iPhone (iPhones only autoplay videos that are muted and set to play inside the page)Low–Medium
7Clipboard“Copy code” fails silently because the page isn’t on HTTPSHTTPSThe secure version of HTTP; traffic between the browser or app and the server is encrypted.Open in glossary → or the browser asks for permissionMedium
8File uploadsAn iPhone photo (HEIC format) is rejected, or the camera option is missingMedium–High
9FontsFallback fonts make text wider, so buttons wrap or text is cut offLow–Medium
10Autofill stylingAutofilled fields turn light blue or yellow and the text becomes unreadableMedium
11Third-party cookies blocked“Sign in with…” popups, chat widgets or payment iframes fail in Safari and FirefoxHigh
12Naive browser detection“Your browser is not supported” in a browser that works perfectly wellMedium

Find the bug

Here’s a checkout for a running-shoe shop. It works in Chrome on desktop, but it has six browser-specific bugs. Test it like a pro:

🐞 Bug hunt: Running shoe checkout

This demo has 6 hidden bugs. Explore it like a tester, then check your findings.

Found0/6

Open the page in…

User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

NIGHTRUN Secure checkout

or check out below

Contact & delivery

Delivery date

Shipping

We accept

CardWalletBank transferGift card

Night Sprint 3 · EU 42$129.00

ShippingFree

Total$129.00

Console

  • › Navigated to https://nightrun.example.com/checkout
  1. 1

    Hint: Open the page in Safari on the iPhone and choose a delivery date. Watch the console.

  2. 2

    Hint: In Safari on the iPhone, look at the very bottom of the screen. Can you place the order?

  3. 3

    Hint: Try Express pay in each browser and compare the console.

  4. 4

    Hint: Compare the spacing between sections in Samsung Internet and in Chrome.

  5. 5

    Hint: Use "Autofill saved address" in Chrome, Safari and Firefox and compare the fields.

  6. 6

    Hint: Open the page in Firefox. Is the warning true?

Notice the Environment line. For browser bugs, the browser name, version, operating system and device are not optional: without them, a developer can’t reproduce the bug. See Writing Bug Reports for the full format.

Check this part

  1. Firefox users see "Your browser is not supported", but the site works for them once they dismiss it. What is the most likely cause?

  2. On iPhone Safari, a bottom button on a full-height screen hides under the browser toolbar. Which bug pattern is this?

The browser bugs that show up again and again, from full-height screens on iOS to naive browser detection, and a checkout with six to find.

Part ProNot started

Tools & how-to

Real browsers first

  • Install the main desktop browsers: Chrome, Firefox and Edge on your computer. Safari only runs on macOS, so you need a Mac (or a cloud service) to test it.
  • Test on real phones: at least one iPhone and one Android phone, ideally a Samsung. A real deviceReal deviceA physical phone or tablet used for testing, as opposed to an emulator or simulator.Open in glossary → shows you the real toolbar, keyboard, date pickers and autofill.
  • Debug Safari on an iPhone: on the iPhone, turn on Settings › Apps › Safari › Advanced › Web Inspector (on older iOS versions: Settings › Safari › Advanced). On the Mac, turn on Safari › Settings › Advanced › Show features for web developers, connect the phone with a cable, then pick it in the Develop menu. You get the full Web Inspector, console included, for the page on the phone.
  • Debug Chrome on Android: turn on USB debugging on the phone, connect it, then open chrome://inspect in desktop Chrome.

Cloud device labs

Services like BrowserStack, LambdaTest and Sauce Labs let you open your site in hundreds of real browsers and devices from your own browser. They’re great for browsers you don’t own: old iOS versions, Samsung phones, Windows-only browsers from a Mac. Most offer a local testing tunnel, so you can test a staging site that isn’t public.

Preview versions

Safari Technology Preview is a free app from Apple for macOS that ships upcoming Safari features early. Together with Chrome Beta/Canary and Firefox Developer Edition/Nightly, it lets you catch problems before a new browser version reaches your users.

Responsive mode is not a real browser

The device toolbar in Chrome DevTools (and “Responsive Design Mode” in Firefox and Safari) changes the size of the page and sends a different user agent. It’s still the same engine underneath. Choosing “iPhone 15” in Chrome gives you a narrow Chrome window, not Safari. It cannot show you:

  • Safari’s toolbar and the 100vh problem
  • iOS date pickers, keyboards and autofill
  • WebKit-only CSS or JavaScript bugs
  • Real fonts, real touch behavior and real performance

Use it to check layouts quickly, then confirm on real browsers.

User agent spoofing

You can make a browser pretend to be another one. In Chrome DevTools open the ⋮ menu › More tools › Network conditions, untick “Use browser default” and pick a user agent. Safari has Develop › User Agent. This only changes what the browser says it is. It’s useful for testing user agent checks (like the banner bug above) and server redirects to a mobile site, but the page still renders with your real engine, so it can’t find rendering bugs.

How to run a cross-browser pass

  1. Get the matrix and the build. Know which browsers are Tier 1, 2 and 3, and which version of the site you’re testing.
  2. Test fully in one main browser first. Find the “normal” bugs in Chrome before you multiply your effort.
  3. Run the key flows in every Tier 1 and Tier 2 browser. Login, search, cart, checkout, forms, anything with payments or uploads.
  4. Compare side by side. Put two browsers next to each other and look for layout, spacing, font and color differences.
  5. Keep the console open. A JavaScript error in one browser is a huge clue.
  6. Report with the full environment. Browser, version, OS, device, and whether it also happens in other browsers.

Check this part

  1. Why can't DevTools device mode replace testing on a real iPhone?

  2. In a cross-browser pass, what do you do before multiplying your effort across browsers?

Real browsers and phones first, cloud device labs and preview versions next, what responsive mode can't show, and how to run a pass.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Part ProNot started

Example test cases

TC-XB-001Checkout can be completed in every Tier 1 browser

Preconditions

  • Browser matrix agreed
  • Test account with items in the cart

Steps

  1. Open the cart in Chrome (Windows)
  2. Complete checkout with a test card
  3. Repeat in Safari on iOS (latest and previous major) and Safari on macOS

Expected result

The order is placed in every browser, with the same total and a confirmation screen.

TC-XB-002Bottom action button is visible on iOS Safari

Preconditions

  • Real iPhone with Safari

Steps

  1. Open the checkout page
  2. Scroll up and down so the toolbar collapses and expands
  3. Rotate to landscape and back

Expected result

The Place order button is always fully visible and tappable, never covered by the Safari toolbar or the home indicator.

TC-XB-003Date field works with the native picker in each browser

Steps

  1. Open the delivery form in Chrome, Safari (iOS and macOS), Firefox and Samsung Internet
  2. Open the date field
  3. Pick a date
  4. Submit the form

Expected result

The picker opens in every browser and the chosen date is saved correctly (same date in the order confirmation).

TC-XB-004Features with limited support have a fallback

Preconditions

  • Firefox (no Payment Request API)

Steps

  1. Open the checkout page in Firefox
  2. Look for the Express pay button
  3. Complete checkout

Expected result

Either Express pay is hidden, or it falls back to normal card payment. No JavaScript errors in the console.

TC-XB-005Autofilled fields stay readable

Preconditions

  • A saved address in the browser

Steps

  1. Open the checkout form in Chrome, Safari and Firefox
  2. Autofill the name and address fields
  3. Check the text in light and dark mode

Expected result

Autofilled values are readable in every browser (at least 4.5:1 contrast).

TC-XB-006No unsupported-browser warning in supported browsers

Steps

  1. Open the home page in each browser in the matrix
  2. Repeat with a spoofed user agent (DevTools › Network conditions)

Expected result

No "browser not supported" message appears in any supported browser.

Tip: click a test case to expand it.

Check this part

  1. A feature like Express pay has limited browser support. What does the test case expect in a browser without it?

  2. What contrast should autofilled field text have in every browser, according to the test case?

Ready-made cross-browser test cases for checkout, the iOS bottom bar, date pickers, fallbacks, autofill and browser warnings.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Checklist

Cross-browser testing checklist

0 of 12 checked

Key takeaways

Finished this page?Nice work, this page is complete!

Mark it as done to track your progress. It's saved in this browser, no account needed.

Its cards are now in your Bites review ⚡
Esc

Type to search the whole site.