Using Browser Testing Suites

Testing CSS has been a hurdle for many web developers and their HTML-based projects. This article contains a proposed workflow for fixing CSS discrepancies found during CSS testing.

What is a Browser Testing Suite?

A browser testing suite captures screenshots of web pages as they appear in different browsers and different operating systems. Visit this site to see a list of available browser testing suites. I use browsershots because of its price point (free).

Testing Procedures

  1. Start with an HTML-based page
  2. Create two standards compliant CSS files:
    • css/screen/layout.css
    • css/screen/site.css
  3. Include the default layout and site CSS files in the HTML header
  4. Test your work with a browser testing suite
  5. If there are display differences between browser versions following the steps outlined below

Fixing CSS for a Specific Browser

IE6 is the culprit in the following example:

  1. Duplicate the compliant layout CSS file and rename it layout_IE6.css
  2. Modify the layout_IE6.css files for IE6 compatibility
  3. Use a scripting language to inject the IE6 links after the standards compliant links. Refer to this post for details
  4. Test your changes with a browser testing suite. You’ll only need to run tests for IE6
  5. Don’t delete unchanged styles from the IE6 CSS file

References

Tags: ,

Spam comments will not be approved because Akismet is awesome.

Leave a Reply