首页 | 主题 | 图库 | 问答 | 文摘 | 原创 | 百科

历史 | 地理 | 人物 | 艺术 | 体育 | 科学 | 音乐 | 电影 | 信息技术 | 世界遗产

 开放、中立,源自维基百科

Personal tools

Acid2

From Wikipedia, the free encyclopedia

Jump to: navigation, search
The reference image for Acid2. In the real test, the nose will light up blue when pointing over it with the cursor.
The reference image for Acid2. In the real test, the nose will light up blue when pointing over it with the cursor.

Acid2 is a test suite published and promoted by the Web Standards Project to identify web page rendering flaws in browsers and authoring tools. Acid2 was released on April 12, 2005.[1] It has been developed in the spirit of the Acid1 test from 1998. [2] The Acid tests test many features on a single page and report test results graphically.

Acid2 tests features of HTML and, more prominently, CSS. The purpose of testing 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. Because Acid2 tests how web browsers deal with faulty code, the test is intentionally not written to W3C CSS standard specifications, and fails validation.[3] This is expected and was the intention of its designers.[4]

Contents

Overview of standards tested

Acid2 tests the following web standards:[5]

  • Alpha transparency on PNG images – the eyes are transparent PNGs
  • The object element
  • Absolute, relative and fixed positioning using CSS
  • The CSS box model
  • CSS tables
  • CSS margins
  • CSS generated content
  • CSS parsing – Acid2 includes a number of illegal CSS statements to test error handling
  • Paint order
  • CSS line heights
  • Hovering effects

Because Acid2 is not a comprehensive test, it does not guarantee total conformance with any particular standard.[5]

The Web Standards Project has created a special version of Acid2 test,[6] because the data: URIs used in the original test have never been formally standardized.

Compliant applications

Acid2 as rendered by compliant applications
Acid2 as rendered by compliant applications

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, no browsers could render Acid2 correctly, but now a number of applications pass the test by rendering it correctly:

Officially released

In development

Languages
AD Links