Testing Pages in Various Browsers
Following is a response to an Ask-the-programmer question (Possibilities newsletter, July feature): Do I need to test how my website looks in different browsers?
There are differences. But not as many as one might think when considering the plethora of different desktops and mobile devices that are in use, and their various browsers.
In my experience, there are less design-rendering differences (how the page looks, assuming it's a responsive page) than functionality differences (how it acts when the user does things like click on something or fill in a form).
Web pages have flowing content. Unless the web page is composed entirely of an image, it's likely that there will be slight changes from browser to browser and operating system to operating system. Some may default to slightly larger font, more leading, or different letter spacing.
Slight font or form field rendering differences can change the flow from browser to browser — different line breaks or occupying a different amount of space.
Many differences are likely to be inconsequential or an acceptable compromise. Some, however, may require changing things for a more pleasing design or better user experience.
A list of specific differences to look for would stale quickly because browsers are being updated so rapidly. Until recently, for example, Safari on Mac didn't recognize the required
attribute for form field tags. The attribute is now fully functional.
Although browser publishers tend to ensure their users know updates are available, it is likely that some people don't update their browsers. The features of the latest version won't be available to those people.
Specifications related to HTML5 functionality and CSS functionality are still evolving. There may be no browser that recognizes the full gamut.
Ways to Test
Functionality tests generally need to be done manually. But it may be sufficient to do design-rendering tests via screenshot services.
Manually —
The more HTML5- and CSS3-specific properties the website has, the more prudent it is to manually test the site on various browsers and devices.
Test form submissions, content movement like sliders or content that's revealed or becomes hidden — any functionality that relies on CSS3-specific properties to work correctly, especially properties that might have only recently been added to browsers.
The Mozilla CSS Reference lists CSS property compatibility for various browsers, both desktop and mobile. Click the property you're interested in to find the page with the browser compatibility table. (Because browsers are updated frequently, it is possible the information in the browser compatibility table has already become stale.)
Screenshot Services —
As noted earlier, design-rendering tests can often be done by screenshot services — although it is prudent to manually do the final tests for important browsers and devices.
Here are two websites that offer web page screenshot services.
Browserling provides a quick screenshot of how a browser you select renders the page you specify. This is good for a quick look at how the specified browser is likely to render your page.
Browser Shots makes a screenshot of the rendering of many different browses operating on various operating systems. This is good for comprehensive review of a web page.
Find more browser screenshot services by doing a search for cross-browser testing.
So, yes, if it's important that the website renders and functions correctly in various browsers, then do test the website.
(This article first appeared in Possibilities newsletter.)
Will Bontrager