Acid2 is a
webpage
A web page (or webpage) is a Web document that is accessed in a web browser. A website typically consists of many web pages linked together under a common domain name. The term "web page" is therefore a metaphor of paper pages bound together in ...
that tests
web browser
A web browser, often shortened to browser, is an application for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's scr ...
s' functionality in displaying aspects of
HTML
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
markup,
CSS 2.1 styling,
PNG images, and
data URIs. The test page was released on 13 April 2005 by the
Web Standards Project. The Acid2 test page will be displayed correctly in any application that follows the
World Wide Web Consortium
The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. Founded in 1994 by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working together in ...
and
Internet Engineering Task Force
The Internet Engineering Task Force (IETF) is a standards organization for the Internet standard, Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster ...
specifications for these technologies. These specifications are known as
web standards
Web standards are the formal, non-proprietary standards and other technical specifications that define and describe aspects of the World Wide Web. In recent years, the term has been more frequently associated with the trend of endorsing a set of st ...
because they describe how technologies used on the web are expected to function.
Acid2 tests
rendering flaws in
web browser
A web browser, often shortened to browser, is an application for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's scr ...
s 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 1.0 (CSS1)
standard Standard may refer to:
Symbols
* Colours, standards and guidons, kinds of military signs
* Standard (emblem), a type of a large symbol or emblem used for identification
Norms, conventions or requirements
* Standard (metrology), an object ...
. 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
Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated as IE or MSIE) is a retired series of graphical web browsers developed by Microsoft that were used in the Windows line of operating ...
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
Tweaking refers to fine-tuning or adjusting a complex system, usually an electronic device. Tweaks are any small modifications intended to improve a system.
In electronics, it is a synonym for "trimming." Analog circuit boards often have small ...
their web pages. Acid2 challenged Microsoft to make Internet Explorer comply with web standards. On 31 October 2005,
Safari
A safari (; originally ) is an overland journey to observe wildlife, wild animals, especially in East Africa. The so-called big five game, "Big Five" game animals of Africa – lion, African leopard, leopard, rhinoceros, African elephant, elep ...
2.0.2 became the first browser to pass Acid2.
Opera
Opera is a form of History of theatre#European theatre, Western theatre in which music is a fundamental component and dramatic roles are taken by Singing, singers. Such a "work" (the literal translation of the Italian word "opera") is typically ...
,
Konqueror
Konqueror is a Free and open-source software, free and open-source web browser and file manager that provides World Wide Web, web access and file viewer, file-viewer functionality for file systems (such as local files, files on a remote FTP ser ...
,
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 curr ...
, 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. Acid2 was followed by
Acid3
The Acid3 test is a web test page from the Web Standards Project that checks a web browser's compliance with elements of various web standards, particularly the Document Object Model (DOM) and JavaScript.
If the test is successful, the results ...
.
History

Acid2 was first proposed by
Håkon Wium Lie
Håkon Wium Lie (born July 26, 1965) is a Norwegian web pioneer, a standards activist, and the chairman of YesLogic, developers of Prince CSS-based PDF rendering software. He is best known for developing Cascading Style Sheets (CSS) while work ...
, chief technical officer of
Opera Software
Opera (formerly Opera Software AS) is a Norwegian multinational technology corporation headquartered in Oslo, Norway with additional offices in European Union, Europe, China, and Africa. Opera offers a range of products and services that inclu ...
and creator of the widely used
Cascading Style Sheets web standard. In a 16 March 2005 article on
CNET, Lie expressed dismay that
Microsoft Internet Explorer
Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated as IE or MSIE) is a retired series of graphical web browsers developed by Microsoft that were used in the Windows line of operating ...
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
Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
to design
Internet Explorer 7
Windows Internet Explorer 7 (IE7) (codenamed Rincon) is a version of Internet Explorer, a web browser for Windows. It was released by Microsoft on October 18, 2006. It was the first major update to the browser since 2001. It does not support ve ...
, 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 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; International Organization for Standardization, 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 t ...
-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
The Acid3 test is a web test page from the Web Standards Project that checks a web browser's compliance with elements of various web standards, particularly the Document Object Model (DOM) and JavaScript.
If the test is successful, the results ...
as a follow-up to Acid2. While Acid2 primarily tests CSS, Acid3 focuses more on
JavaScript
JavaScript (), often abbreviated as JS, is a programming language and core technology of the World Wide Web, alongside HTML and CSS. Ninety-nine percent of websites use JavaScript on the client side for webpage behavior.
Web browsers have ...
and other "
Web 2.0
Web 2.0 (also known as participative (or participatory) web and social web) refers to websites that emphasize user-generated content, ease of use, participatory culture, and interoperability (i.e., compatibility with other products, systems, a ...
" 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
Windows Internet Explorer 7 (IE7) (codenamed Rincon) is a version of Internet Explorer, a web browser for Windows. It was released by Microsoft on October 18, 2006. It was the first major update to the browser since 2001. It does not support ve ...
, 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 ...
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
Web standards are the formal, non-proprietary standards and other technical specifications that define and describe aspects of the World Wide Web. In recent years, the term has been more frequently associated with the trend of endorsing a set of st ...
published by the
World Wide Web Consortium
The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. Founded in 1994 by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working together in ...
and the
Internet Engineering Task Force
The Internet Engineering Task Force (IETF) is a standards organization for the Internet standard, Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster ...
. 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:
*
Alpha transparency in
PNG-format images: 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. This was a significant issue because
Internet Explorer 6
Microsoft Internet Explorer 6 (IE6) is a web browser developed by Microsoft for Windows operating systems. Released on August 24, 2001, it is the sixth, and by now discontinued, version of Internet Explorer and the successor to Internet Explorer ...
, 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
Windows Internet Explorer 7 (IE7) (codenamed Rincon) is a version of Internet Explorer, a web browser for Windows. It was released by Microsoft on October 18, 2006. It was the first major update to the browser since 2001. It does not support ve ...
, bringing Internet Explorer in line with other web browsers in this regard.
* The
object element: 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 URIs: 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
Binary may refer to:
Science and technology Mathematics
* Binary number, a representation of numbers using only two values (0 and 1) for each digit
* Binary function, a function that takes two arguments
* Binary operation, a mathematical op ...
image is
base64
In computer programming, Base64 is a group of binary-to-text encoding schemes that transforms binary data into a sequence of printable characters, limited to a set of 64 unique characters. More specifically, the source binary data is taken 6 bits ...
-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 separat ...
,
and data URI support has now been implemented in most browsers.
* Absolute, relative, and fixed CSS positioning: Absolute positioning means that the web developer specifies the exact X and Y coordinates where an element is to be placed into the page. Relative positioning means that the web developer specifies an X and Y offset from the usual position of the element. Fixed positioning means that 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: This feature 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: This part of CSS allows the web designer to apply table formatting without traditional
HTML table markup.
* 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: 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: 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.
* Hovering effects: When the user moves the 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 providing direct access to Data (computing), data by a user (computing), user's point and click, clicking or touchscreen, tapping. A hyperlink points to a whole document or to ...
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.
Test conditions

A passing or failing result 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.
The following browser settings and user actions invalidate the test:
* Scrolling
* Resizing the browser window
* Zooming in or out
* Disabling images
* Using
Opera
Opera is a form of History of theatre#European theatre, Western theatre in which music is a fundamental component and dramatic roles are taken by Singing, singers. Such a "work" (the literal translation of the Italian word "opera") is typically ...
's ''Fit to width'' or ''Small Screen Rendering'' modes
* Applying custom fonts, colors, styles, etc.
*
User JavaScript or
Greasemonkey scripts
* Enabling
Internet Explorer
Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated as IE or MSIE) is a deprecation, retired series of graphical user interface, graphical web browsers developed by Microsoft that were u ...
's "compatibility view"
Compliant and non-compliant applications
If rendered correctly, Acid2 will appear as a
smiley
A smiley, sometimes called a smiley face, is a basic ideogram representing a Smile, smiling face. Since the 1950s, it has become part of popular culture worldwide, used either as a standalone ideogram or as a form of communication, such as em ...
face below the text "
Hello World!" in the user's browser, with the nose turning blue when the mouse cursor hovers over it. By the end of March 2009, the current versions of every major web browser passed the test. However, at the time of the test's release, every browser failed it.
The images below illustrate the various rendering errors of the most popular browsers when Acid2 was released on 13 April 2005.
Image:Safariacid2.png, Reference rendering
Image:Ieacid2.png, Internet Explorer 6
Microsoft Internet Explorer 6 (IE6) is a web browser developed by Microsoft for Windows operating systems. Released on August 24, 2001, it is the sixth, and by now discontinued, version of Internet Explorer and the successor to Internet Explorer ...
Image:Acid2 NS72.png, 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 curr ...
1.0
Image:Safari 1.2 Acid2.png, Safari
A safari (; originally ) is an overland journey to observe wildlife, wild animals, especially in East Africa. The so-called big five game, "Big Five" game animals of Africa – lion, African leopard, leopard, rhinoceros, African elephant, elep ...
1.2
Image:Opera 8.0 Acid2.png, Opera
Opera is a form of History of theatre#European theatre, Western theatre in which music is a fundamental component and dramatic roles are taken by Singing, singers. Such a "work" (the literal translation of the Italian word "opera") is typically ...
8.0
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 browser engines
This article compares browser engines.
Some of these engines have shared origins. For example, the WebKit engine was created by forking the KHTML engine in 2001. Then, in 2013, a modified version of WebKit was officially forked as the Blink en ...
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
Internet properties established in 2005
Test items
de:Acid (Browsertests)#Acid2
sv:Acid webbläsartester#Acid2