Ten years ago, cross-browser work meant hacks for every layout. Today Chromium, Firefox's Gecko and Apple's WebKit share most of the platform, and interoperability projects close more gaps each year. That makes the remaining differences more dangerous, not less: teams test in one browser, assume the rest match, and ship a bug that only Safari or only Firefox users see.
This is the list we keep for our own frontend team, built from the bugs that actually reached production. For each area you get what differs, how to code defensively, and how to test it. At the end there is the test matrix we run.
Three engines, not three browsers
Edge, Opera, Brave, Vivaldi and Samsung Internet use Chromium. Every browser on iOS and iPadOS uses WebKit, apart from EU builds that may ship other engines under Apple's rules for that region. So the real matrix is:
Engine | Main browsers | Where it matters most |
|---|---|---|
Blink (Chromium) | Chrome, Edge, Opera, Brave, Samsung Internet | Most desktop and Android traffic |
Gecko | Firefox | Desktop, privacy-focused users |
WebKit | Safari, all iOS browsers | Every iPhone and iPad |
If your analytics show 25 percent iOS traffic, a WebKit-only bug hits a quarter of users, whatever browser name they see.
Scrollbars
Styling scrollbars is the classic case of two systems:
Standard properties:
scrollbar-width(auto,thin,none) andscrollbar-color. Firefox has supported them for years; Chromium added them in Chrome 121.Legacy pseudo-elements:
::-webkit-scrollbarand friends. Supported by WebKit and by Chromium. In Chromium, once you set the standard properties, they take precedence and the pseudo-elements stop applying.
Safari's support for the standard properties has lagged, so check the current compatibility data before relying on them. Also remember that macOS and mobile use overlay scrollbars by default, so a layout that looks fine on a Mac may shift on Windows when a classic scrollbar takes 15 to 17 pixels.
.panel {
scrollbar-width: thin;
scrollbar-color: #9aa0b4 transparent;
scrollbar-gutter: stable; /* reserve space so content does not jump */
}
.panel::-webkit-scrollbar { width: 8px; } /* engines without the standard properties */
Date and time inputs
<input type="date"> is supported everywhere, but the picker UI, the displayed format and keyboard behaviour differ by engine and OS. What stays the same is the value: always YYYY-MM-DD, regardless of the locale display.
Rules we follow:
Never parse the displayed text. Read
input.valueorinput.valueAsDate.Do not style the picker internals; the pseudo-elements are engine-specific.
Test min and max in every engine. Out-of-range typing is handled differently.
For date-time with time zones, use a library or separate inputs;
datetime-localhas no zone.
Date parsing in JavaScript is a related trap. new Date('2026-12-06 10:00') (space instead of T) was invalid in older Safari versions. Use ISO 8601 with a T and an offset, or Date.UTC with numbers.
Newly shipped CSS
When a feature lands in all three engines, it does not land at the same time, and early versions may differ. Examples from recent years:
Feature | Lesson |
|---|---|
| Shipped in Safari and Chrome well before Firefox; early adopters broke Firefox layouts |
Container queries | Units and edge cases ( |
Subgrid | Firefox had it years first; Chromium and WebKit caught up later |
| Different line counts across engines are expected; do not snapshot test exact wraps |
View transitions | Same-document first, cross-document later, at different times per engine |
Defensive pattern: wrap new features in @supports with a working baseline.
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
@supports selector(:has(*)) {
.card:has(img) { grid-row: span 2; }
}
And check the Baseline status on MDN, which tells you whether a feature is "newly available" (all engines just shipped) or "widely available" (about 30 months across all engines).
Form autofill
Autofill is browser UI, so it is not standardised beyond the autocomplete attribute tokens.
Chromium largely ignores
autocomplete="off"for addresses and credentials and treats it as a hint at best. Use the correct tokens (email,current-password,new-password,one-time-code,postal-code) instead of trying to switch autofill off.Safari and iOS use
one-time-codeto offer codes from SMS and email. Without it, users retype.Autofilled fields may not fire the events your framework expects. Listen for
inputandchange, and read values at submit time rather than only from state.Styling differs:
:autofillis the standard pseudo-class,:-webkit-autofillthe old one.
Media and device APIs
These are the places where engines most often differ in what they support, not just how:
Video codecs and autoplay rules (see our posts on Safari codecs and on autoplay).
WebRTC codec preferences and
getUserMediapermission persistence.Clipboard writes after
await(WebKit is stricter about user activation).Web Bluetooth, Web USB and Web Serial: Chromium only.
Push notifications on iOS: only for web apps added to the Home Screen.
Always feature-detect the exact capability ('serial' in navigator) and design a fallback.
Storage and privacy
WebKit caps script-writable storage after seven days of browser use without interaction, and every engine partitions third-party storage in iframes in some way. Firefox's Total Cookie Protection and Safari's tracking prevention partition by default; Chrome supports partitioned cookies through CHIPS. Embeds that log users in need the Storage Access API in at least two of the three engines.
Our test matrix
We use Playwright because one test suite runs on all three engines:
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'webkit', use: { ...devices['Desktop Safari'] } },
{ name: 'mobile-webkit', use: { ...devices['iPhone 15'] } },
{ name: 'mobile-chrome', use: { ...devices['Pixel 7'] } },
],
});
npx playwright test --project=webkit --project=firefox # quick cross-engine pass
npx playwright test # everything, on main
Important limits:
Playwright's WebKit is a build of the open-source engine, not Apple's Safari. Media codecs, Apple Pay, some privacy features and iOS behaviours (toolbar, keyboard, focus zoom) differ.
Mobile projects emulate viewport, touch and user agent. They do not reproduce mobile browser UI.
So we run three layers:
Every pull request: Chromium, Firefox, WebKit projects for critical flows.
Nightly: full suite on all five projects.
Before release: a short manual pass on a real iPhone and a real Android phone, focused on forms, media and payments.
Common mistakes
Mistake | Why it hurts | Do this instead |
|---|---|---|
Testing only in Chrome | WebKit and Gecko bugs ship to production | Run three engines in CI |
Treating Playwright WebKit as Safari | Misses media, iOS UI and privacy behaviour | Add real-device checks |
Browser sniffing for features | Breaks when engines change |
|
Shipping new CSS without fallback | Broken layout in the lagging engine | Baseline first, enhance inside |
| Ignored and annoys users | Correct autocomplete tokens |
Key takeaways
Think in engines: Blink, Gecko and WebKit, with all iOS traffic on WebKit.
Most remaining differences are in scrollbars, form controls, new CSS, autofill, media and privacy.
Feature-detect and keep a working baseline for anything recently shipped.
Run one Playwright suite across all three engines, and still test on real phones.
Check Baseline status before adopting a feature.
References
MDN, Baseline compatibility: https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility
MDN, scrollbar-color: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color
MDN, input type="date": https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
MDN, HTML autocomplete attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
Playwright, Browsers: https://playwright.dev/docs/browsers
web-platform-tests, Interop dashboard: https://wpt.fyi/interop
Comments
0No comments yet. Be the first to comment!
Sign In to post a comment.