Acid2 is a
webpage that test
web browsers' functionality in displaying aspects of
HTML markup,
CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone techno ...
2.1 styling,
PNG images, and
data URI
The data URI scheme is a uniform resource identifier (URI) scheme that provides a way to include data in-line in Web pages as if they were external resources. It is a form of file literal or here document. This technique allows normally separat ...
s. The test page was released on 13 April 2005 by the
Web Standards Project
The Web Standards Project (WaSP) was a group of professional web developers dedicated to disseminating and encouraging the use of the web standards recommended by the World Wide Web Consortium, along with other groups and standards bodies.
Foun ...
. The Acid2 test page will be displayed correctly in any application that follows the
World Wide Web Consortium and
Internet Engineering Task Force specifications for these technologies. These specifications are known as
web standards because they describe how technologies used on the web are expected to function.
The Acid2 tests
rendering flaws in
web browsers and other
applications that render HTML. Named after the
acid test for gold, it was developed in the spirit of
Acid1, a relatively narrow test of compliance with the
Cascading Style Sheets
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone techno ...
1.0 (CSS1)
standard. As with Acid1, an application passes the test if the way it displays the test page matches a reference image.
Acid2 was designed with
Microsoft Internet Explorer particularly in mind. The creators of Acid2 were dismayed that Internet Explorer did not follow web standards. It was prone to display web pages differently from other browsers, causing web developers to spend time
tweaking their web pages. Acid2 challenged Microsoft to make Internet Explorer comply with web standards. On 31 October 2005,
Safari
A safari (; ) is an overland journey to observe wild animals, especially in eastern or southern Africa. The so-called "Big Five" game animals of Africa – lion, leopard, rhinoceros, elephant, and Cape buffalo – particularly form an importa ...
2.0.2 became the first browser to pass Acid2.
Opera,
Konqueror,
Firefox, and others followed. With the release of
Internet Explorer 8 on 19 March 2009, the latest versions of all major desktop web browsers now pass the test until
IE10
Internet Explorer 10 (IE10) is the tenth, and by now, discontinued, version of the Internet Explorer web browser and the successor to Internet Explorer 9, released by Microsoft on September 4, 2012, shortly after the completion of Windows Serv ...
was released, which fails the test. Its successor,
Microsoft Edge, is able to render it correctly as of Windows 10 version 1607. Acid2 was followed by
Acid3.
The test fails when browsers become compliant with current CSS collapse and margin standards.
History

Acid2 was first proposed by
Håkon Wium Lie, chief technical officer of
Opera Software and creator of the widely used
Cascading Style Sheets
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone techno ...
web standard. In a 16 March 2005 article on
CNET
''CNET'' (short for "Computer Network") is an American media website that publishes reviews, news, articles, blogs, podcasts, and videos on technology and consumer electronics globally. ''CNET'' originally produced content for radio and televi ...
, Lie expressed dismay that
Microsoft Internet Explorer did not properly support web standards and hence was not completely interoperable with other browsers. He announced that Acid2 would be a challenge to
Microsoft to design
Internet Explorer 7, then in development, to achieve a greater degree of standards compliance than previous versions of Internet Explorer. The original
Acid1 test had forced browser makers to fix their applications or face embarrassment; Lie hoped that Acid2 would do the same.
Lie and a colleague,
Ian Hickson
Ian "Hixie" Hickson is the author and maintainer of the Acid2 and Acid3 tests, the WHATWG HTML 5 specification, , created the first draft of the test in February 2005.
Ian Hickson coded the final test in collaboration with the
Web Standards Project
The Web Standards Project (WaSP) was a group of professional web developers dedicated to disseminating and encouraging the use of the web standards recommended by the World Wide Web Consortium, along with other groups and standards bodies.
Foun ...
and the larger web community.
It was officially released on 13 April 2005 and at that time, every web browser failed it spectacularly.
On 23 April 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
The Standard Generalized Markup Language (SGML; ISO 8879:1986) is a standard for defining generalized markup languages for documents. ISO 8879 Annex A.1 states that generalized markup is "based on two postulates":
* Declarative: Markup should des ...
-style comments that were never widely implemented. In browsers that do not implement SGML-style comments, the original test displayed the word "ERROR" on the bottom part of the face.
In March 2008, Ian Hickson released
Acid3 as a follow-up to Acid2. While Acid2 primarily tests CSS, Acid3 focuses more on
JavaScript and other "
Web 2.0" technologies.
Microsoft's response
In July 2005,
Chris Wilson, the Internet Explorer Platform Architect, stated that passing Acid2 was not a priority for
Internet Explorer 7, describing the test as a "wish list" of features rather than a true test of standards compliance. In December 2007, Microsoft announced that all the changes required to pass Acid2 would be made available in
Internet Explorer 8, but that the changes would not be turned on by default, meaning that IE8 would not actually pass the test. The concern was that switching to a new behavior would cause too many problems in web pages expecting Internet Explorer's old, non-compliant behavior. Then in March 2008 Microsoft released IE8 beta 1 and turned on the changes by default after all. James Pratt, product manager for IE8, explained that this decision was made so that "developers can spend more time building features and cool stuff, and less time just trying to tweak their sites across different browsers."
Another unresolved standards compliance issue caused IE8 beta 1 to fail if not all elements of the test were hosted from the same server.
In August 2008 Microsoft released IE8 beta 2, which resolved the issue.
As of that beta, however, standards mode is not turned on by default for pages loaded in the "
Intranet
An intranet is a computer network for sharing information, easier communication, collaboration tools, operational systems, and other computing services within an organization, usually to the exclusion of access by outsiders. The term is used in c ...
Zone". This zone is active for pages loaded via
UNC paths, named addresses without dots (like
http://mysite/), and sites that bypass the
proxy settings. As such, IE8 will not pass the Acid2 test if loaded in these cases.
Overview of standards tested

Acid2 tests a variety of
web standards published by the
World Wide Web Consortium and the
Internet Engineering Task Force. With the exception of CSS 2.1, all web standards tested were codified before the year 2000.
CSS 2.1 was a candidate recommendation at the time of Acid2's release, and was still a candidate recommendation as of 23 April 2009.
Specifically, Acid2 tests these functions on your browser;
Alpha transparency in
PNG-format images, which is seen when the eyes of the smiley face use ''alpha transparency'', which is part of the 1996 Portable Network Graphics specification. Alpha transparency blends the eyebrows into the face smoothly and elegantly. This was a significant issue because
Internet Explorer 6, the most widely used web browser at the time Acid2 was released, did not support alpha transparency. This deficiency was rectified in
Internet Explorer 7, bringing Internet Explorer in line with other web browsers in this regard.
object element
An HTML element is a type of HTML (HyperText Markup Language) document component, one of several types of HTML nodes (there are also text nodes, comment nodes and others). The first used version of HTML was written by Tim Berners-Lee in 1993 ...
which, once again, the eyes also test support of the HTML object element. The object element has been a part of HTML since HTML 4 was released in 1998, yet by 2005 it still was not completely supported in all web browsers. The creators of Acid2 considered object element support important because it allows for content fallback—if an object fails to load, then the browser can display alternative (generally simpler, more reliable) content in its place.
Data URI
The data URI scheme is a uniform resource identifier (URI) scheme that provides a way to include data in-line in Web pages as if they were external resources. It is a form of file literal or here document. This technique allows normally separat ...
s, where the actual images that form the eyes are encoded as data URIs, which allow multimedia to be embedded in web pages rather than stored as a separate file. Acid2 tests the most common case, where a
binary image is
base64-encoded into text and then that encoded text is included in a data URI in the web page. Although the IETF published the data URI specification in 1998,
they never formally adopted it as a standard. Nonetheless, the HTML 4.01 specification references the
data URI scheme
The data URI scheme is a uniform resource identifier (URI) scheme that provides a way to include data in-line in Web pages as if they were external resources. It is a form of file literal or here document. This technique allows normally separate ...
,
and data URI support has now been implemented in most browsers.'Absolute, relative, and fixed CSS positioning, which mean the web developer specifies the exact X and Y coordinates where an element is to be placed into the page, the web developer specifies an X and Y offset from the usual position of the element, and the element is placed relative to the browser window, and scrolls with the window rather than with the rest of the page. The CSS box model, which is a feature that allows the web designer to specify dimensions, padding, borders, and margins, and was the focus of the original
Acid1 test.
Acid2 not only retests margin support but also tests minimum and maximum heights and widths, features new to CSS 2.0.
CSS table formatting, which allows the web designer to apply table formatting without traditional
HTML table markup on the CSS.
CSS generated content, Using CSS generated content, web developers can add decorations and annotations to specified elements without having to add the content to each one individually.
CSS parsing, in which a number of illegal CSS statements are present in Acid2 to test error handling. Standards-compliant browsers are expected to handle these errors as the CSS specification directs. This helps ensure cross-browser compatibility by making all browsers treat CSS with the same level of strictness, so that what works in one browser should not cause errors in another. Paint order, which means that Acid2 requires that the browser has standard paint order. That is, overlapping elements should be placed or ''painted'' on top of each other in the correct order, and finally Hovering effects, which is When the user moves his or her mouse over the smiley face's nose, it turns blue. This is called a hovering effect, and while it has traditionally been used for
hyperlink
In computing, a hyperlink, or simply a link, is a digital reference to data that the user can follow or be guided by clicking or tapping. A hyperlink points to a whole document or to a specific element within a document. Hypertext is text wit ...
s, it should work on a wide variety of HTML elements.
Because Acid2 is not a comprehensive test, it does not guarantee total conformance to 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.
Passing conditions

A passing score is only considered valid if the browser's default settings were used. Actions such as changing font sizes, zoom level, and applying user stylesheets can break the display of the test. This is expected and is not relevant to a browser's compliance.
These browser settings and user actions invalidate the test, which are:
Scrolling, Resizing the browser window, Zooming in or out, Disabling images, Using
Opera's ''Fit to width'' or ''Small Screen Rendering'' modes, Applying custom fonts, colors, styles, etc.,
User JavaScript
This article details features of the Opera web browser.
Currently supported features
;Access recently closed pages: Opera allows its users to retrieve all of the tabs or windows closed earlier in the current session from a list. Closed tabs c ...
or
Greasemonkey scripts, Enabling
Internet Explorer's "compatibility view"
Compliant applications

If rendered correctly, Acid2 will appear as a
smiley face below the text "
Hello World!
''Hello'' is a salutation or greeting in the English language. It is first attested in writing from 1826. Early uses
''Hello'', with that spelling, was used in publications in the U.S. as early as the 18 October 1826 edition of the ''Norwich C ...
" 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 browsers pass it. Many browsers as of today manage to pass the test, which includes: the desktop version of
Microsoft Edge, which passes the test as of Windows 10 build 14393.105;
Internet Explorer, the web browser that comes with
Windows;
Odyssey Web Browser, a web browser for
AmigaOS and
MorphOS;
Gecko
Geckos are small, mostly carnivorous lizards that have a wide distribution, found on every continent except Antarctica. Belonging to the infraorder Gekkota, geckos are found in warm climates throughout the world. They range from .
Geckos ar ...
-based browser,
Mozilla Firefox
Mozilla Firefox, or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. It uses the Gecko rendering engine to display web pages, which implements current and a ...
, a web browser for Windows,
Mac OS, and
Linux;
SeaMonkey, an
Internet suite for Windows, Mac OS, and Linux;
Songbird, a media player and web browser for Windows, Mac OS, and Linux;
Camino
Camino may refer to:
Places
*Camino, California, United States, a census-designated place
*Camino, Piedmont, Italy, a town
* Camino, Veneto, Italy, a town
People
*Jaime Camino (1936–2015), Spanish film director and screenwriter
*Renae Camino ...
, a web browser for Mac OS;
Mozilla Thunderbird, an email client for Windows, Mac OS, and Linux;
Firefox for mobile
Firefox for Android is a web browser developed by Mozilla for Android smartphones and tablet computers. As with its desktop version, it uses the Gecko layout engine, and supports features such as synchronization with Firefox Sync, blocking web ...
, a web browser for mobile devices;
Miro, an RSS aggregator; BitTorrent client, web browser and media player;
Mozilla Sunbird
Mozilla Sunbird is a discontinued free and open-source, cross-platform calendar application that was developed by the Mozilla Foundation, Sun Microsystems and many volunteers. , a calendar application for Windows, Mac OS, and Linux; Spicebird 0.8, a personal information manager for Windows, Mac OS, and Linux;
WebRunner (formerly Prism), a web application platform for Windows, Mac OS, and Linux;
WebKit- and
KHTML-based browsers:
Safari
A safari (; ) is an overland journey to observe wild animals, especially in eastern or southern Africa. The so-called "Big Five" game animals of Africa – lion, leopard, rhinoceros, elephant, and Cape buffalo – particularly form an importa ...
, the web browser included in Mac OS;
Google Chrome
Google Chrome is a cross-platform web browser developed by Google. It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox. Versions were later released for Linux, macOS ...
, a web browser for Windows, Mac OS, and Linux;
Konqueror, a web browser for Linux;
OmniWeb, a web browser for Mac OS;
Shiira, a web browser for Mac OS;
iCab, a web browser for Mac OS;
Web
Web most often refers to:
* Spider web, a silken structure created by the animal
* World Wide Web or the Web, an Internet-based hypertext system
Web, WEB, or the Web may also refer to:
Computing
* WEB, a literate programming system created by ...
, the official
GNOME
A gnome is a mythological creature and diminutive spirit in Renaissance magic and alchemy, first introduced by Paracelsus in the 16th century and later adopted by more recent authors including those of modern fantasy literature. Its characte ...
web browser;
Midori, the official
Xfce web browser; The
Google Earth
Google Earth is a computer program that renders a 3D computer graphics, 3D representation of Earth based primarily on satellite imagery. The program maps the Earth by superimposition, superimposing satellite images, aerial photography, and geog ...
integrated web browser;
Presto
Presto may refer to:
Computing
* Presto (browser engine), an engine previously used in the Opera web browser
* Presto (operating system), a Linux-based OS by Xandros
* Presto (SQL query engine), a distributed query engine
* Presto (animation s ...
-based browsers:
Opera, a web browser for Windows, Mac OS, Linux,
BSD
The Berkeley Software Distribution or Berkeley Standard Distribution (BSD) is a discontinued operating system based on Research Unix, developed and distributed by the Computer Systems Research Group (CSRG) at the University of California, Berk ...
and Solaris with mobile versions for all mobile phones, tablets and all
Apple products like
iPad;
Internet Channel, a version of the Opera browser for the Nintendo
Wii
The Wii ( ) is a home video game console developed and marketed by Nintendo. It was released on November 19, 2006, in North America and in December 2006 for most other Regional lockout, regions of the world. It is Nintendo's fifth major ho ...
game console; and
Prince, an XML-to-PDF converter for Windows, Mac OS, and Linux. However, 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 to make them more suitable for devices with small screens.
Timeline of passing applications
The following is a list of releases noting significant releases of applications that passed the test. New applications that have passed Acid2 since their first official release are not included in the timeline.
See also
*
Comparison of layout engines
References
External links
{{Spoken Wikipedia, Acid2.ogg, date=2009-04-13
Acid2 testAcid2 test informationAcid2 in major browsersWeb Standards Project collection of Acid testsWeb Standards Project press release 13 Apr 2005Acid2 timeline
Acid tests
Web software
2005 introductions
Test items
de:Acid (Browsertests)#Acid2
sv:Acid webbläsartester#Acid2