Sub topic 14
Cross-browser and real-device checks
This chapter assumes you can inspect a page in DevTools and have already checked the layout at your main breakpoints in one browser. Here you repeat the pass in other engines and on real hardware, because a page that matches the design in one browser can still differ in another.
Why one browser is not enough
Three rendering engines power almost every browser:
- Blink in Chrome, Edge, Opera and most Android browsers.
- WebKit in Safari. Every browser on iOS also uses WebKit.
- Gecko in Firefox.
Each engine implements CSS slightly differently. Text is rasterized differently, form controls have different default styling, and newer CSS features may be missing or behave differently in one engine. Doing the full pass in every browser is rarely worth the time, so pick a small matrix instead.
Choose a browser matrix
Base the matrix on the project's analytics or on the client's stated requirements. If neither exists, start with this:
| Target | Why |
|---|---|
| Latest Chrome (desktop) | Your baseline for the main pass |
| Latest Firefox (desktop) | Covers Gecko |
| Latest Safari (macOS) | Covers WebKit on desktop |
| Safari on a real iPhone | Covers WebKit on iOS, including its toolbar behavior |
| Chrome on a real Android phone | Covers Blink on mobile hardware |
Write the matrix down with browser versions so a report can say exactly where a defect appeared.
What to compare
Do not repeat every check everywhere. Concentrate on areas where engines are known to differ:
- Font rendering. Weight and edge smoothing vary by operating system. Treat small differences as normal. A wrong fallback font or a missing weight is a real defect.
- Form controls. Inputs, selects, checkboxes and date pickers often look different by default.
- Viewport units. On mobile browsers,
100vhcan include the area behind the address bar, which makes full-screen sections overflow. Compare with100dvh. - Newer CSS. Features such as
gapin flexbox,aspect-ratioand container queries can fail on older versions. - Sticky and fixed elements. Headers and bars can jump when the mobile toolbar collapses.
- Images and video. Check that formats such as AVIF or WebP load, and that a fallback exists where support is missing.
.hero {
min-height: 100vh; /* fallback for browsers without dvh */
min-height: 100dvh; /* accounts for the mobile address bar */
}The second declaration is ignored by browsers that do not understand it, so the first one remains as the fallback.
Real devices versus emulation
DevTools device mode resizes the viewport and simulates touch, but it still uses your desktop engine. It cannot reproduce iOS Safari behavior, real font rendering, GPU differences or the feel of scrolling.
If you lack hardware, a cloud service such as BrowserStack or LambdaTest gives access to real devices remotely. Test at the device's native width and with the browser's own toolbar visible.
Recording results
For each browser, note the version, operating system, viewport width and a screenshot. Compare against your baseline browser first, then against the design. If a difference appears only in one engine, say so in the report. Later chapters cover how to decide whether it matters.
Exercise
A full-screen hero section looks correct in desktop Chrome's mobile emulation but is cut off at the bottom on a real iPhone. What is the likely cause, and what would you try?
Show answer
The 100vh unit on iOS Safari includes the area behind the collapsible address bar, so the section is taller than the visible area. Try min-height: 100dvh with 100vh kept as a fallback, then retest on the physical device.