Acid2
From Wikipedia, the free encyclopedia
Acid2 is a test case designed by the Web Standards Project to identify web page rendering flaws in browsers and authoring tools. It is an updated edition of the original Acid test of 1997.[1]
Acid2 employs certain features of HTML and, more prominently, CSS. The purpose of employing such features is to highlight the problems with browsers that do not display it correctly. The Acid2 test should render correctly on any browser that follows the W3C HTML and CSS 2.0 specifications. Any browsers which do not correctly and completely support all of the features which Acid2 takes advantage of will not render the page correctly.
The Web Standards Project has created a special version of Acid2 test,[2] because Data URLs used in the original test were never formally standardized.
Contents |
[edit] Compliant browsers
If rendered correctly, Acid2 will appear as a smiley face in the user's browser, with the nose turning blue when moused over. At the time of the test's release, no browsers could render Acid2 correctly but now at many pass the test by rendering it correctly:
[edit] Released browsers
- Safari, in Mac OS X v10.4.3, becoming the first browser to do so.
- Prince, an XML-to-PDF converter developed by YesLogic.
- Opera v. 9, March of 2006.[3]
- Konqueror, the KDE project's browser. Since Safari's rendering engine is a fork of Konqueror's rendering engine, some of Apple's enhancements were adapted. (See below.)
- iCab. (See below.)
- Shiira, a browser for Mac OS X. It uses the same rendering engine as Safari, which is available as a system-wide framework in Mac OS X.
- OmniWeb, a Mac OS X browser.
[edit] Development browsers
- As of December 11, 2006, the Mozilla line of browsers (Firefox, Camino) and their derivatives (SeaMonkey)
Although the Web Standards Project web site states that iCab passes Acid2, it technically falls short by displaying a scrollbar on the viewport. (A correctly rendered test should not have a scrollbar.[4]) This has since been fixed with the release of iCab 3.0.3. Konqueror originally had the same problem when it first was stated to have passed the test, but this issue was corrected with release 3.5.2.
[edit] Non-compliant browsers
Although Internet Explorer has also been moving towards better CSS compliance, its author, Microsoft, has publicly stated that Acid2 is not one of their primary focuses, and that Internet Explorer 7 does not pass the test.[5]
The programmers of the Mozilla family of browsers (including Mozilla Suite, Firefox, Seamonkey, Camino [Mac OS X], and Netscape 6+) have been making gradual efforts towards passing the Acid2 test. The delay is due to fundamental architecture work that has to be done to the Gecko rendering engine to support the changes that Acid2 requires.[6] An end-user release that supports Acid2 will appear in 2007 as Firefox 3,[7] and the proper code for these changes has already been committed. Mozilla Firefox nightly builds (development versions) are capable of rendering the Acid2 test correctly.
Opera DS (Nintendo DS Browser) is also not compliant.
[edit] Passing conditions
The test has been designed so that it is only valid with browser's default settings. Changing font sizes, zoom level, applying user stylesheets etc can break the display of the test. This is expected and is not relevant to a browser's compliance.
Ian Hickson, the author of the test, has provided WaSP with clarifications about the Acid2 test and how things should behave.[8]
The following browser settings and user actions may affect the rendering of Acid2 page without bearing on the browser's compliance:
- Scrolling. A part of the face remains fixed when you scroll.
- Zooming to any level other than 100% (default).
- Disabling images.
- Opera's Fit to width and SSR (Small Screen Rendering) modes. These are off by default, and the test is not valid when they are enabled.
- User colors, fonts etc.
- User style sheets, Opera's user mode for styling.
- User JS.
Also, the public release of Opera has some bugs revealed by testing Acid2 under non-standard conditions:
- Disabling and re-enabling images breaks the display (it doesn't return to the initial state).
- Zooming the page reveals a pattern of orange dots. This is a bug in the image scaling algorithm.
- Zooming the page makes the nose jagged. It should remain smooth.
However, these bugs don't mean that Opera doesn't pass Acid2 because they require testing under non-standard conditions, which makes the test invalid.
[edit] Timeline of successful browsers
The Acid2 test was officially announced on April 13, 2005. The following is a list of releases noting significant builds of applications that passed the test.
Date | Browser | Type | Notes |
---|---|---|---|
April 27, 2005 | Safari | non-public build[9] | |
May 18, 2005 | iCab | non-public build | |
May 20, 2005 | iCab | build public to members only | |
June 4, 2005 | Konqueror | non-public build[10] | |
June 6, 2005 | iCab | public build | |
October 31, 2005 | Safari | official release | Version 2.02, available with Mac OS X 10.4.3. First official browser to pass test. |
November 29, 2005 | Konqueror | official release[11] | Available with KDE 3.5. First Linux-based browser to pass virtually all of the test, except for hiding the scrollbar. |
December 7, 2005 | Prince | official release[12] | Version 5.1, first non-web browser to pass test |
March 10, 2006 | Opera | public weekly build[13] | First Windows-based browser to pass test and also the first Linux-based browser to fully pass the test. A public beta was released on April 20, also successful. |
March 14, 2006 | Shiira | official release | |
March 24, 2006 | iCab | build public to members only | iCab 3.0.2b400 adds a switch to hide the scrollbars |
March 28, 2006 | Konqueror | official release[14] | Although previous releases passed, their compliance was questionable. This version does not wrongly show scrollbars. |
April 12, 2006 | Firefox | semi-public build[15] | 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. |
May 24, 2006 | Opera Mobile | non-public build[16] | First mobile browser to pass test |
June 20, 2006 | Opera 9.0 | official release[17] | First browser supporting multiple platforms to pass the test |
June 30, 2006 | Obigo Browser | non-public build[18] | Second mobile browser to pass test |
August 17, 2006 | iCab 3.0.3 | official release | First public release that hides the scrollbars |
December 8, 2006 | Firefox | public nightly build[19] | First regular Firefox development builds to pass Acid2 (reflow-refactoring branch was landed). |
December 8, 2006 | Camino | public nightly trunk build[20] | First regular Camino development builds to pass Acid2 (reflow-refactoring branch was landed). |
December 8, 2006 | SeaMonkey | public nightly trunk build[21] | First regular SeaMonkey development builds to pass Acid2 (reflow-refactoring branch was landed). |
[edit] Trivia
- Beta versions of Opera 9 included an easter egg that, when triggered[1], affects the Acid2 test. After the page has been open for a while, the eyes of the smiley will follow the cursor around and when the user clicks on the eyes, a JavaScript alert will read "Because just passing is not enough ;)" screencapture 1 screencapture 2.
- Because Acid2 also tests how web browsers deal with faulty code, it will fail W3C page and CSS validation. This is expected and was the intention of its designers.
- Any application that uses Apple's WebKit to render Web pages within the application window will also "pass" the test. RapidWeaver from Realmac Software, among others, will correctly render the Acid2 test if you drag the URL into the preview pane.
[edit] See also
[edit] References
- ^ CSS1 Test Suite: 5.5.26 clear. Retrieved on 2006-05-16.
- ^ Molly Says: March 3rd, 2006 at 2:24 am. Microsoft IE7 Progress: Sneak Preview of MIX06 Release. Molly.com (1 March 2006). Retrieved on 2006-05-16.
- ^ Acid2 - Rows 4 and 5 AKA Opera passes the Acid2 test!. Stranger, yet.... Retrieved on 2006-05-16.
- ^ Overflow: the 'Overflow' Property. W3C CSS working draft. World Wide Web Consortium. Retrieved on 2006-05-15.
- ^ Wilson, Chris (July 29, 2005). Standards and CSS in IE. IEBlog. Retrieved on 2006-05-16.
- ^ Ruderman, Jesse (December 24th, 2005). Acid2 in Gecko. Indistinguishable from Jesse. Retrieved on 2006-05-16.
- ^ Firefox3 Schedule. Retrieved on 2006-12-09.
- ^ Acid2 and Opera 9 Clarifications: Yes, Opera 9 Passes the Test. Retrieved on 2006-07-22.
- ^ Safari Passes the Acid2 Test (Updated). Retrieved on 2006-06-14.
- ^ carewolf (06/04/2005). Konqueror now passes Acid2. Retrieved on 2006-05-16.
- ^ K Desktop Environment 3.5 Released (November 29, 2005). Retrieved on 2006-05-16.
- ^ The Acid2 Test. Retrieved on 2006-05-16.
- ^ csant (10 March 2006). …and one more weekly!. Retrieved on 2006-05-16.
- ^ KDE 3.5.2 Release Announcement (March 28, 2006). Retrieved on 2006-05-16.
- ^ Braniecki, Zbigniew (2006-04-12). Meet Mr. Face. Stream of Thoughts. Retrieved on 2006-05-16.
- ^ Opera for Symbian passes Acid2. Retrieved on 2006-05-24.
- ^ Welcome to Opera 9.0. Retrieved on 2006-06-20.
- ^ Obigo Browser. Retrieved on 2006-06-30.
- ^ Mozilla Bug 289480. Retrieved on 2006-12-08.
- ^ Mozilla Bug 289480. Retrieved on 2006-12-08.
- ^ Mozilla Bug 289480. Retrieved on 2006-12-08.
[edit] External links
- Acid2 test
- Acid2 press release
- Article in CNET that proposed the Acid2 test
- Safari first gold browser to pass Acid2
- Mozilla Foundation's Acid2 tracking bug
- Acid2 in major browsers - Shows Acid2 rendered in Safari, Prince, Opera, iCab, Konqueror, Netscape/Mozilla/Firefox, and Internet Explorer, showing their progressive improvements
- Complete overview of Opera's Acid2 fixes
- Press release from YesLogic: Prince 5.1 passes rigorous Acid2 test
- Acid2 - the truth about Safari, iCab and Konqueror