Chapter 10. Testing and Debugging

So, you've got your website all set up and running, you've written your CSS, and everything worked exactly right the first time, right? Unlikely. With any type of scripting or programming there is a degree of trial and error involved in reaching your goals. This equally applies to CSS. When writing CSS, developers typically flick back and forth between the code and the browser (or browsers), writing or amending code, and refreshing to check the results. If there are any more complicated steps in between—building, uploading, compiling, and so on—the productivity of the developer is impacted with every edit.

Once the code is complete, it is necessary to ensure that it works as expected in all the browsers to be supported ...

Get Pro CSS for High Traffic Websites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.