Slashdot Mirror


Safari Passes the Acid2 Test

TigerX writes "The Mac web browser Safari has become the first browser to pass the Acid2 test. Acid2 is a CSS/HTML test suite put out by the Web Standards Project (WASP). Developer David Hyatt had been working on the project for the past few weeks. Details can be found at his blog. The patched Safari is not yet avaliable for public consumption. It is unknown when the patches will appear in a public version of Safari."

21 of 430 comments (clear)

  1. Re:Firefox? by wowbagger · · Score: 4, Informative

    Since Safari has nothing to do with Firefox, Mozilla, or the Gecko HTML engine, being instead based upon the KHTML engine from KDE, I would say "When can we expect the code to flow out and make Firefox/Mozilla pass the Acid2 test? Never."

  2. Re:Purpose of Acid2 by fox8118 · · Score: 5, Informative

    From the Acid2 site:

    Acid2 is a test page for web browsers published by The Web Standards Project (WaSP). It has been written to help browser vendors make sure their products correctly support features that web designers would like to use. These features are part of existing standards but haven't been interoperably supported by major browsers. Acid2 tries to change this by challenging browsers to render Acid2 correctly before shipping.

    Acid2 is a complex web page. It uses features that are not in common use yet, because of lack of support, and it crams many tests into one page. The aim has been to make it simple for developers and users to check if a browser passes the test. If it does, the smiley face on the left will appear. If something is wrong, the face will be distorted and/or shown partly in red.

    The purpose of this document is to explain how Acid2 works. The markup behind Acid2 is peculiar in that it attempts, on one single page, to test many different features. We do not envision or recommend that normal Web pages should be written this way, but it is appropriate for a test page. At first sight, the source code is hard to understand, but the guided tour offered in this document will explain it in some detail. The guide assumes a technical understanding of HTML, CSS and PNG.

  3. Re:Purpose of Acid2 by FidelCatsro · · Score: 5, Informative

    The test was designed to check the browser implementations of the newer CSS standards.
    Basicaly the point being not in obscure code , but in rendering normal code properly ,all-be-it and extremly complex example of which made to test the browsers and how well they implement the standard.
    Web designers/developers will use the code when it is avaliable in their arsenal.
    As of now , the newest version of webcore is the only rendering engine that can do it so congratulations to apple(and ofcourse the khtml team ,khtml being the thing on which webcore is based)

    --
    The only things certain in war are Propaganda and Death. You can never be sure which is which though
  4. Sweet baby Jesus in a car seat... by Anonymous Coward · · Score: 5, Informative
    Enough with the lame LSD comments!

    The term "acid test" dates back to the freaking gold rush days when they would use nitric acid to test for gold.

  5. Re:Hmmm by vidarlo · · Score: 4, Informative
    Now, I admit that this is purely hypothetical, but surely a better guide to browser usability is how well it renders the morass of dodgy XML/HTML that gets sent to it every single day.

    There is where the "quirks mode" comes in. The browser should (and is) able to detect whenever something is written after the standard, or not. If it is written in a standard compliant manner, it should be rendered the same everywhere. If it is in quirks mode, it should be rendered different, and the page will behave different.

  6. Re:Go Apple! by justforaday · · Score: 5, Informative

    It was just some schmoe who put together a patch for Safari.

    Yes, the same "schmoe" who happens to be the development lead for the Safari project. Seeing as how he works for Apple, it would most certainly be Apple who did this.

    --
    I'll turn into a supernova and burn up everything. Well I'll turn into a black little hole and you'll turn into string.
  7. Re:Go Apple! by iamthemoog · · Score: 4, Informative
    --
    No Norm, those are your safety glasses; I'll wear my own thanks...
  8. Re:Go Apple! by Have+Blue · · Score: 5, Informative

    Apple (specifically, Dave Hyatt) did all the work related to this specific subtopic of "browser development". KDE can have the glory for writing a world-class web rendering engine from scratch, but within the scope of this article it's all Hyatt.

  9. Re:Hmmm by typhoonius · · Score: 4, Informative

    There's a "tour" of the test available that explains exactly what each row is meant to test, and it all looks like pretty fundamental stuff, so I wouldn't write it all off as a "corner case."

    If nothing else, it helped Hyatt corner a number of outright glitches and bugs. I hope the Mozilla and IE7 teams follow his lead.

  10. Re:so does opera by ch3 · · Score: 5, Informative

    I don't know which Opera you use but mine doesn't render the test correctly: http://www.hli.be/media/acid2opera8.PNG

  11. From WASP website by karvind · · Score: 5, Informative
    The site has more details and has a list of additional features that are tested

    Transparent PNGs -- The eyes are encoded as transparent PNGs.

    The object element -- The eyes of the face are attached to an object element. Being able to use object (which can have alternative content) is one of the oldest requests from web designers.

    Absolute, relative and fixed positioning -- Being able to position elements accurately is important for advanced page layouts.

    Box model -- The original Acid test focused on the CSS box model. Acid2 continues in this fine tradition by testing 'height', 'width', 'max-width', 'min-width', 'max-height' and 'min-height'.

    CSS tables -- There is nothing wrong with table layouts. It is a powerful layout model which makes sense on bigger screens. However, the table markup is troublesome as it ties the content to these screens. Therefore, being able to specify table layouts in CSS is important.

    Margins -- CSS defines accurate algorithms for how margins around elements should be calculated.

    Generated content -- The ability to add decorations and annotations to Web pages without modifying the markup has long been requested by authors.

    CSS parsing -- Acid2 includes a number of illegal CSS statements that should be ignored by a compliant browser.

    Paint order -- We test that overlapping content is painted in the right order. This is not a feature in itself, but a requirement for other features to work correctly.

    Line heights -- The Acid2 test checks a few key parts of the CSS inline box model, upon which any standards-compliant Web page depends.

    Hovering effects -- One of the elements in the face changes color when you hover over it. Which one?

  12. Re:Firefox Results by masklinn · · Score: 5, Informative

    It won't, Mozilla devs are far behind schedule and have quite a lot of important bugs to fix with Gecko 1.8 (rendering engine for Firefox 1.1).
    Sadly, Acid2 won't be high priority before Gecko 1.9, which means that firefox won't be fully CSS2 compliant before at least version 1.2.

    --
    "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
  13. Re:Another reason why open source is good by IamTheRealMike · · Score: 5, Informative

    No, they won't. Why don't you read what the KDE developers themselves found before assuming that Apple, a publically traded corporation not exactly known for its humility and openness, is working hand in hand with the original authors?

  14. Re:Go Apple! by albalbo · · Score: 5, Informative

    Acid2 isn't meant to be valid.

    CSS parsers are designed to degrade when they come across things they don't recognise; that's what it's testing.

    --
    "Elmo knows where you live!" - The Simpsons
  15. Re:Go Apple! by MankyD · · Score: 4, Informative

    Someone else already responded to this critique. The site explicitly says they added bad CSS that a compliant browser should ignore.

    --
    -dave
    http://millionnumbers.com/ - own the number of your dreams
  16. Re:Another reason why open source is good by nether · · Score: 4, Informative

    Eh? Maybe you should read the thread that you linked. Yes, there was initial dismay, but then Apple - in their "humility and openness" - helped the team crack open the tar ball.

    This is the exact same thing that happened way back when - when safari was first unveiled. Apple submitted a large tar, and then helped the KHTML team decifer it.

    Being both a Safari *and* Konq user, this makes me happy.

    Suggestion: know what you link ... you might get goatse.cx

  17. Re:Go Apple! by outZider · · Score: 5, Informative

    Nope, not quite. You can't compile Safari, but you can compile WebKit, which is Safari's rendering engine. Drop in the new WebKit, and Safari has those changes. :)

    --
    - oZ
    // i am here.
  18. Re:Yes, but... by gutter · · Score: 5, Informative

    Had you bothered to read the blog, you'd have seen that he already published the patches there:

    http://weblogs.mozillazine.org/hyatt/archives/2005 _04.html#008042

    --
    Check out DRM-free movies at http://www.bside.com
  19. Re:Yes, but... by ahillen · · Score: 5, Informative

    Apple feeds their improvements back to KHTML after the Safari version they appear in is public.

    Although it doesn't seem to be very useful.

  20. Re:More to the point by twener · · Score: 5, Informative

    > Will the patches appear in Konqueror (KHTML)?

    Zack Rusin just blogged about this.

  21. Argh. I thought I hit Extrans. by Mitchell+Mebane · · Score: 5, Informative

    From his latest blog entry:

    "Do you have any idea how hard it is to be merging between two totally different trees when one of them doesn't have any history? That's the situation KDE is in. We created the khtml-cvs list for Apple, they got CVS accounts for KDE CVS. What did we get? We get periodical code bombs in the form of them releasing WebCore. Many of us wanted to even sign NDA's with Apple to at least get access to the history of their internal vcs and be able to be merging the changes incrementally, the way they can right now. Nothing came out of it. They do the very, very minimum required by LGPL."

    Go read the whole post. Very informative, and kind of sad.

    --

    The roots of education are bitter, but the fruit is sweet.
    --Aristotle