Acid (browser tests)

from Wikipedia, the free encyclopedia

The Acid tests ( English acid , acid ') are test sites for testing web browsers and similar applications on their conformity to the standards of the World Wide Web Consortium (W3C).

The first acid test from 1998 was developed by Todd Fahrner and was later included in the official CSS 1.0 test series of the World Wide Web Consortium. The following tests "Acid2" (2005) and "Acid3" (2008) were developed and published by the Web Standards Project (WaSP). Most browser manufacturers consider the tests to be a hurdle which, if exceeded, shows that the web standards of the World Wide Web Consortium are well supported.

acid

Correct display of the acid test ( Mozilla Firefox )

Acid , also called Boxacid , was developed and published by Todd Fahrner in October 1998. Today, the first acid test is almost irrelevant; all graphical web browsers commonly used today have passed this test for a long time. In 1999, the acid test was included in the official CSS 1.0 test suite of the World Wide Web Consortium . The original acid test was the central inspiration for Ian Hickson, the developer of the "Acid2" and "Acid3" browser tests, to develop browser tests himself.

In contrast to the browser tests used until then to check the interoperability of web browsers with CSS 1.0, the acid test combines a large number of different tests on one page. To check the rendering , a reference rendering is used, inspired by the browser tests by Braden McDaniel, which must match the output in the web browser.

The Mozilla Firefox , or the Mozilla Application Suite , Acid has been around since an early beta version . With version 6 of Internet Explorer , a change was finally introduced in the interpretation of the width declaration of CSS, which means that Internet Explorer has since also been able to pass the test. Unlike the browsers from Mozilla and Microsoft , the Netscape Navigator 4, which was still relevant at the time, was hopelessly overwhelmed with the test.

Acid2

Correct display of the Acid2 test

Acid2 was developed by the Web Standards Project (WaSP) and published on April 12, 2005, based on the original "Acid" test from 1998. The main reason for developing this test was the increasing lack of support for the W3C standard by the various manufacturers of web browsers. This development led to higher costs for the development of websites and made it more difficult for users of alternative browsers to display the websites in some cases. Although some leading manufacturers were initially skeptical of the WaSP, a return has gradually been taking place since 2000.

The purpose of the test is to identify rendering errors through web browsers. The test uses the principles of HTML , but mainly CSS skills are tested, as these were not adequately supported by most browsers at the time of development. The main intention here is to highlight the issues with the browsers that fail the test. All browsers whose HTML and CSS implementations are compatible with the specifications of the World Wide Web Consortium have no difficulties in displaying them.

When designing the Acid2 test, the developers also attached great importance to error compatibility . Many browsers had implemented routines for automatic error correction. However, the CSS standard dictates that incorrect code should be ignored. This is why the Acid2 test deliberately contains faulty code that browsers have to ignore.

Tested standards

Acid2 representation in
Microsoft Internet Explorer 6.0
Acid2 representation in
Microsoft Internet Explorer 7.0
Acid2 representation in
Mozilla Firefox 1.5 and 2.0
  • So-called “ data URLs ” - the source text of files, for example, is integrated directly into the HTML source text and is not accessed via a separate URL.
  • General CSS parsing - The Acid2 test has some incorrect CSS declarations that must be ignored.
  • Absolute, relative and fixed positioning of elements using CSS
  • Moving over ("hovering") elements - the smiley's nose turns blue
  • Inside and outside distances of elements
  • The overlapping of different elements
  • Tables made with CSS
  • Content generated with CSS
  • The CSS inline box model
  • The CSS box model
  • Alpha blending of PNG graphics
  • The objectelement

Application compatibility

If the Acid2 test was passed, you should see a smiley with the text "Hello World!" In the browser window. If you move the mouse over the nose of the smiley face, it changes color and turns blue. At the time the test was published, none of the usual rendering engines was able to display the page correctly. The current versions of all common rendering engines have passed the test since March 2009.

  • KHTML / WebKit
    • Safari was the first browser in April 2005 with version 2.0.2 that could pass the Acid2 test . The necessary update of the WebKit is an official part of macOS from version 10.4.3 and enables all Mac browsers that use WebKit to pass the test.
    • Konqueror (from KDE 3.5) comes from the same code base as Safari ( KHTML ), which means that some of the corrections to Safari have also been reused for Konqueror.
    • iCab was able to pass the Acid2 test from version 3.0 . ICab has been completely rewritten for version 4.0 and from now on relies on WebKit as the rendering engine.
  • Presto
    • Opera passed the Acid2 test with version 9.0 since March 2006.
  • Gecko
  • Trident
    • Internet Explorer has been showing the correct display of the test since March 2009 with version 8.0 as the last of the important web browsers.
  • Other uses
    • Prince XML (from version 5.1), an XML to PDF converter from YesLogic , has also passed the test since December 2005.

Acid3

Reference rendering of the Acid3 test

Like its predecessor "Acid2" , Acid3 was developed by the Web Standards Project (WaSP). The development was started in April 2007 by Ian Hickson and finally published in February 2008. Unlike Acid2 , the third acid test focuses on interactive websites and therefore primarily tests DOM Level 2 and ECMAScript . Nevertheless, the browsers are also checked for their SVG and XML support , for example .

In September 2011 the Acid3 test was adapted to the current developments in the browser market. This has made it easier to pass the test, so that various browsers subsequently complete the test with a higher number of points than before.

Tested standards

Acid3 was implemented with JavaScript and contains 100 individual tests, which are divided into six groups called "buckets". In addition, the Acid3 test has four other special tests.

  • Bucket 1: DOM Traversal, DOM Range, HTTP
  • Bucket 2: DOM2 Core and DOM2 Events
  • Bucket 3: DOM2 views, DOM2 style and CSS 3 selectors
  • Bucket 4: HTML and DOM
  • Bucket 5: Tests of the Acid3 Competition ( SVG , HTML, SMIL , Unicode , XML ...)
  • Bucket 6: ECMAScript

In addition to the 100 individual tests, the Acid3 test page rendered by the respective browser must also visually correspond to the reference rendering. Text shadows (CSS 3), downloadable fonts (" web typography ", CSS 2.0), Base64- coded images (in the form of data URLs ) and color representations in the HSLA color space must also be supported for correct display and passing the Acid3 test become. In addition, the animation of the test should run smoothly.

Application compatibility

When the Acid3 test is called , a percentage counter should count up to 100, whereby each step may take a maximum of 33 ms to execute. This counter is based on the number of individual tests passed. In the background there are colored rectangles and the shaded text “Acid3” . However, passing all 100 individual tests is not enough to pass the entire test; the display must also correspond to that of the reference rendering.

The test itself was written in such a way that at the time of writing, no browser was able to pass the test. At the moment, WebKit ( Safari from version 4 and Google Chrome from version 3), Gecko ( Mozilla Firefox from version 4) and Presto ( Opera from version 10) are able to completely pass the test. Test 26 in particular causes problems for many rendering engine manufacturers because the Acid3 test requires that all individual tests require a maximum of 33 ms to execute.

On April 22nd, 2008, Ian Hickson, the developer of the Acid3 test , corrected a bug that was discovered by a Mozilla developer. As a result of this change, previous reports of passing the 100 individual tests by WebKit and Presto no longer corresponded to the current status. Both WebKit and Presto are now able to pass all 100 individual tests again.

Mozilla Firefox and Internet Explorer only got 97 and 95 percent of the Acid3 test, respectively. The implementation of the SVG fonts and native SVG animations were tested for the last percentage points. However, these have already been marked as obsolete in future HTML versions and have been superseded by the introduction of WOFF and manipulation with JavaScript. Other browsers only implemented these features very incompletely and incorrectly, just to pass the Acid3 test.

On September 17th, 2011, Ian Hickson and Håkon Wium Lie revised the Acid3 test. Parts of some tests were removed or commented out, which refer to the implementation of features that have either been heavily revised or completely removed in the relevant specifications. The tests concerning DOM Events , DOM Range (both are summarized in DOMException ), Attr objects , SVG Animation (SMIL), SVG Fonts , XLink and DocType nodes are particularly affected . With this test change, the developers can further develop the underlying and still changing specifications without having to take the Acid3 results into account.

As a result of these changes, Firefox and Internet Explorer now also achieve a 100/100 result in the Acid3 test. With the release of the Consumer Preview on February 29, 2012, Internet Explorer 10 completely passed the Acid3 test.

Comparison of different browsers

In the following, different browsers are compared based on the number of points achieved. In addition to the current browser versions, the preliminary versions from which a browser has achieved this number of points are also mentioned.

Desktop browser

Browser
(rendering engine)
Result image since
Google Chrome 4.0
( WebKit with V8 )
Gtk-ok.svg100/100 points
Gtk-ok.svgpresentation of
Gtk-ok.svgperformance
Acid3 reference.png October 12, 2009 (stable version 3.0.195)
Opera 10.0
( Presto )
Gtk-ok.svg100/100 points
Gtk-ok.svgpresentation of
Gtk-ok.svgperformance
Acid3 reference.png September 1, 2009 (stable version 10.0)
Safari 4.0
(WebKit)
Gtk-ok.svg100/100 points
Gtk-ok.svgpresentation of
Gtk-ok.svgperformance
Acid3 reference.png June 8, 2009 (stable version 4.0.0)
Mozilla Firefox 57.0
( Gecko 57.0)
Gtk-ok.svg97/100 points
Gtk-stop.svgpresentation of
Gtk-ok.svgperformance
Acid3 test on Firefox 68.0.png December 1, 2017 (stable version 1.0)
Internet Explorer 10.0
( Trident )
Gtk-ok.svg100/100 points
Gtk-ok.svgpresentation of
Gtk-ok.svgperformance
Acid3 reference.png February 29, 2012 (Consumer Preview 10.0.8250.0)
October 26, 2012 (Stable version 10.0)
Internet Explorer 9.0
(Trident)
Gtk-ok.svg100/100 point
Gtk-stop.svgtext shadow is missing
InternetExplorer9UpdatedAcid3.png August 4, 2010 (Platform Preview 1.9.7916.6000)
March 15, 2011 (Stable version 9.0)
Mozilla Firefox 3.6
(Gecko 1.9.2)
Gtk-stop.svg94/100 points Fx Acid3.png January 21, 2010 (stable version 3.6)
Konqueror 4.4
( KHTML )
Gtk-stop.svg89/100 points Acid3 Konqueror 4400.png June 30, 2010 (stable version 4.4.5)
Internet Explorer 8.0
(Trident)
Gtk-stop.svg20/100 points Acid3-Internet-Explorer-8.0.png March 19, 2009 (stable version 8.0)
Internet Explorer 7.0
(Trident)
Gtk-stop.svg14/100 points Acid3-Internet-Explorer-7.0.png October 18, 2006 (stable version 7.0)
Internet Explorer 6.0
(Trident)
Gtk-stop.svg11/100 points Acid3-Internet-Explorer-6.0v2.png August 27, 2001 (stable version 6.0)

Mobile browser

Browser
(operating system)
Result image since
Opera Mobile Gtk-ok.svg100/100 points Acid3 reference.png Version 9.7 from March 26, 2009
WebKit
Android 3.0
Gtk-ok.svg100/100 points Acid3 reference.png Android 3.0 from February 22, 2011
Firefox Mobile Gtk-ok.svg100/100 points Acid3 reference.png Firefox 4.0 from March 22, 2011
Safari
iOS 7
Gtk-ok.svg100/100 points Mobile iso7.PNG iOS 7 from September 20, 2013
WebKit
HP webOS 3.0.5
Gtk-stop.svg93/100 points MobileChrome 2 3 3.png HP webOS 3.0.5 from January 12, 2012
WebKit
Android 2.3.3
Gtk-stop.svg93/100 points MobileChrome 2 3 3.png Android 2.3.3 from February 22, 2011

Acid4

Ian Hickson wanted to start developing Acid4 as soon as three of the four largest rendering engines ( WebKit , Gecko , Presto, and Trident ) Acid3 were in public builds. This has been the case since 2011. With Acid4, Hickson wants to put special emphasis on SVG , CSS3 and mixed namespaces .

Web links

acid

Acid2

Acid3

Individual evidence

  1. ^ Acid Test Results on Popular Browsers. (No longer available online.) SciActive , February 12, 2008, archived from the original on May 5, 2008 ; accessed on June 11, 2008 .
  2. Todd Fahrner: CSS1 Test Suite: 5.5.26 clear. World Wide Web Consortium , accessed June 11, 2008 .
  3. Surfin 'Safari: The Acid2 Test. MozillaZine , April 12, 2005, archived from the original on May 14, 2011 ; accessed on December 24, 2007 .
  4. ^ The Web Standards Project : Acid2: The Guided Tour. December 24, 2007, accessed June 11, 2008 .
  5. Surfin 'Safari: Safari Passes the Acid2 Test. MozillaZine , April 27, 2005, archived from the original on May 14, 2011 ; accessed on June 11, 2008 .
  6. Opera Desktop Team : … and one more weekly! March 10, 2006, archived from the original on March 21, 2006 ; accessed on June 11, 2008 .
  7. The Web Standards Project : Prince 5.1 Passes Acid2. December 10, 2005, accessed June 11, 2008 .
  8. HTML5 IRC logs: freenode / #whatwg / 20070422. Krijn Hoetmer , December 28, 2007, accessed June 11, 2008 .
  9. http://annevankesteren.nl/2011/09/changing-acid3
  10. ^ Ian Hickson: The Acid3 Test. The Web Standards Project , accessed June 11, 2008 : "the final page has to look exactly, pixel for pixel, like this reference rendering"
  11. ^ Ian Hickson: The Acid3 Test. The Web Standards Project , accessed June 11, 2008 : "the animation has to be smooth"
  12. ^ Ian Hickson: The Acid3 Test. The Web Standards Project , accessed on June 11, 2008 (The uniformity is defined according to the source text insofar as each test must be carried out in less than 33 ms.): "Test X passed, but took X ms (less than 30fps)"
  13. Darin Adler: Bug 17510: Acid3 test 26 takes> 33ms. WebKit , February 24, 2008, accessed on July 31, 2008 : “test 26 passes comfortably on a 2.4GHz MacBook Pro […]. Closing as fixed. "
  14. ^ Ian Hickson: Media queries and performance in Acid3 (and an error on my part). April 22, 2008. Retrieved April 28, 2008 .
  15. Mythbusting: Why Firefox 4 won't score 100 on Acid3… and why that's a good thing. January 25, 2011, accessed February 28, 2011 .
  16. IEBlog for ACID3 (accessed September 29, 2010)
  17. WHATWG Wiki: Acid3 changes. September 9, 2011, accessed September 17, 2011 .
  18. ^ Ian Hickson announces Acid3 modifications. September 17, 2011, accessed September 17, 2011 .
  19. Jonas Sicking: DOM4 not compatible with ACID3 tests. September 8, 2011, accessed September 17, 2011 .
  20. ^ Anne van Kesteren: The Acid3 Problem. September 8, 2011, accessed September 17, 2011 .
  21. ^ Anne van Kesteren: Changing Acid 3. September 9, 2011, accessed September 17, 2011 .
  22. Opera Mobile 9.7 with Opera Turbo ( Memento from March 31, 2009 in the Internet Archive )
  23. Index of / tests / evil / acid / 004 (English)