Acid2 is a test page published and promoted by the Web Standards Project to identify web page rendering flaws in web browsers and other applications that render HTML. It was developed in the spirit of Acid1, a relatively narrow test of compliance with the Cascading Style Sheets (CSS) standard, and was released on April 12, 2005. Like Acid1, the way a web browser renders the test is compared to a reference rendering. If the two match, the browser is considered to pass the test.
Acid2 tests aspects of HTML markup, CSS styling, PNG images, and data URIs. It should render correctly on any application that follows the World Wide Web Consortium and Internet Engineering Task Force specifications for these technologies. The idea is that if both web sites and web browsers follow agreed-upon industry standards, then any web site will work the same in any web browser.
On October 31, 2005, Safari 2.0.2 became the first browser to pass the test. Opera, Konqueror, Firefox, and others followed. The only major browser that does not yet pass the test is Internet Explorer, although an Acid2-compliant version of the browser is in development.
Acid test was "the" test of the time, since it was decisive, immediate, cheap and extremely simple to perform. An analogy is drawn from this historical test to the modern test - if a browser passes the acid test it is approved, very much in the same manner that if a metal passes the acid test it is accepted.
Acid2 is the brainchild of Håkon Wium Lie, chief technical officer of Opera Software and creator of the widely-used Cascading Style Sheets web standard. Together with a colleague, Ian Hickson, he created the first draft of Acid2 in February 2005. Acid2 was first publicly announced on March 16, 2005 in a CNET article where Lie challenged Microsoft to design Internet Explorer 7, then in development, to pass the test.
Ian Hickson coded the actual test in collaboration with the Web Standards Project and the larger web community. It was officially released on April 13, 2005 and at that time, every web browser failed it spectacularly.
In July 2005, Chris Wilson, the Internet Explorer Platform Architect responded by calling Acid2 a "wish list" of features and said that while the test was important to Microsoft, Acid2 compliance was not a priority for Internet Explorer 7. Microsoft later joined other browser makers and Internet Explorer 8 is expected to pass the test.
On April 23, 2005, Acid2 was updated to fix a bug that made the mouth appear too close to the nose. After several complaints, the test was again updated in January 2006 to remove a test for unpopular SGML-style comments that were never widely implemented.
In March 2008, Ian Hickon released Acid3 as a follow-up to Acid2. While Acid2 primarily tests CSS, Acid3 focuses more on JavaScript and other "Web 2.0" technologies.
Because Acid2 is not a comprehensive test, it does not guarantee total conformance with any particular standard. A variant of the Acid2 test that does not test for data URI support is also available from the Web Standards Project.
The following browser settings and user actions invalidate the test:
If rendered correctly, Acid2 will appear as a smiley face below the text "Hello World!" in the user's browser, with the nose turning blue when the mouse cursor hovers over it. At the time of the test's release every browser failed it, but now a number of applications pass the test:
Even though Opera Mini is based on the same rendering engine as Opera for personal computers, it does not pass the Acid2 test. This is because Opera Mini intentionally reformats web pages to try and make them more suitable for devices with small screens.
As of September 2008, approximately 78% of the Web browser market share does not pass the Acid2 test.
| Date | Browser | Availability | Notes |
|---|---|---|---|
| 27 April 2005 | Safari | private build | |
| 18 May 2005 | iCab | private build | This build was made available to registered iCab users on May 20, 2005. |
| 4 June 2005 | Konqueror | private build | |
| 6 June 2005 | iCab | public build | This version of iCab displays a scrollbar on the viewport. Although some state that a correctly rendered test should not have a scrollbar, that feature is not part of the test, and merely a way to prevent the user from scrolling. |
| 7 June 2005 | Safari | source code available | WebKit, the underpinnings of Safari, was made open source on June 7, 2005. When Safari was run with this latest version of WebKit, it passed the Acid2 test. |
| 31 October 2005 | Safari 2.0.2 | official release | Included in Mac OS X 10.4.3. First officially released web browser to pass test. |
| 29 November 2005 | Konqueror 3.5 | official release | First Linux-compatible browser to pass the test, except for hiding the scrollbar. |
| 7 December 2005 | Prince 5.1 | official release | First non-web browser to pass test. |
| 10 March 2006 | Opera | public weekly build | First Microsoft Windows-compatible browser to pass the test and also the first Linux-compatible browser to fully pass the test. A public beta was released on April 20, also successful. |
| 28 March 2006 | Konqueror 3.5.2 | official release | Although previous releases passed, their compliance was questioned because they showed scrollbars. This version did not show the scrollbars. |
| 12 April 2006 | Mozilla Firefox | public nightly build | The "reflow branch" nightly builds, whose code was branched from the Gecko 1.9/Firefox 3.0 trunk and was merged back into the trunk on December 8, 2006. |
| 24 May 2006 | Opera Mobile for Symbian OS | private build | First mobile browser to pass test. |
| 20 July 2006 | OmniWeb 5.5 beta 1 | public build | OmniWeb switches its rendering engine to WebKit, the same rendering engine used in Safari which already passed the Acid2 test |
| 20 June 2006 | Opera 9.0 | official release | |
| 4 July 2006 | Obigo Browser | private build | Second mobile browser to pass test. |
| 17 August 2006 | iCab 3.0.3 | official release | First public release that hides the scrollbars. |
| 6 September 2006 | OmniWeb 5.5 | official release | |
| 8 December 2006 | Mozilla Firefox, Camino, SeaMonkey | public nightly build | Firefox 3 reflow-refactoring branch lands on main Gecko trunk. Firefox/Camino/SeaMonkey trunk builds now pass Acid2, barring other regressions. |
| 11 April 2007 | Internet Channel | official release | |
| 24 October 2007 | Prism 0.8 | public build | |
| 5 March 2008 | Internet Explorer 8 Beta 1 | public build | Beta 1 release passes the test when hosted at www.webstandards.org, but fails the test when hosted at webstandards.org or acid2.acidtests.org. |
| 17 June 2008 | Mozilla Firefox 3.0 | official release | |
| 27 August 2008 | Internet Explorer 8 Beta 2 | public build | Beta 2 release passes the test with all objects rendered properly |